Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

wazig?

ik krijg deze errors:

F:\samp\NIEWUE~1\GAMEMO~1\xSDRP.pwn(2444) : error 017: undefined symbol "string"

F:\samp\NIEWUE~1\GAMEMO~1\xSDRP.pwn(2444) : error 017: undefined symbol "string"

F:\samp\NIEWUE~1\GAMEMO~1\xSDRP.pwn(2444) : error 029: invalid expression, assumed zero

F:\samp\NIEWUE~1\GAMEMO~1\xSDRP.pwn(2444) : fatal error 107: too many error messages on one line

Bij dit command

if(strcmp(cmd, "/view", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
		SendClientMessage(playerid, ORANGE, "|__________________________________|");
	SendClientMessage(playerid, ORANGE, "USAGE: /view [playerid]");
	SendClientMessage(playerid, ORANGE, "FUNCTION: Will spectate a player.");
	SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
	SendClientMessage(playerid, ORANGE, "|__________________________________|");
	return 1;
}
giveplayerid = ReturnUser(tmp);
if (giveplayerid != INVALID_PLAYER_ID)
{
	TogglePlayerSpectating(playerid, 1);
	if (IsPlayerInAnyVehicle(giveplayerid))
	{
		PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
	}
	else
	{
		PlayerSpectatePlayer(playerid, giveplayerid);
	}
	SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
	SendClientMessage(playerid, ORANGE, "HELP: '/view off' to stop spectating");
}
else if(strcmp(tmp, "off", true) == 0)
{
	TogglePlayerSpectating(playerid, 0);
}
else
{
  >>>>>>>>>>>>>>>>>>>>> Deze regel:  format(string, sizeof(string), "%d is not an active player.", giveplayerid);
	SendClientMessage(playerid, RED, string);
}
return 1;
}

Featured Replies

new string[128]; boven de error regel zetten.

if(strcmp(cmd, "/view", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
	SendClientMessage(playerid, ORANGE, "|__________________________________|");
	SendClientMessage(playerid, ORANGE, "USAGE: /view [playerid]");
	SendClientMessage(playerid, ORANGE, "FUNCTION: Will spectate a player.");
	SendClientMessage(playerid, ORANGE, "HELP: /viewoff to stop spectating");
	SendClientMessage(playerid, ORANGE, "|__________________________________|");
	return 1;
}
giveplayerid = ReturnUser(tmp);
if (giveplayerid != INVALID_PLAYER_ID)
{
	TogglePlayerSpectating(playerid, 1);
	if (IsPlayerInAnyVehicle(giveplayerid))
	{
		PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
	}
	else
	{
		PlayerSpectatePlayer(playerid, giveplayerid);
	}
	SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
	SendClientMessage(playerid, ORANGE, "HELP: '/view off' to stop spectating");
}
else if(strcmp(tmp, "off", true) == 0)
{
	TogglePlayerSpectating(playerid, 0);
}
else
{
	new string[128];
	format(string, sizeof(string), "%d is not an active player.", giveplayerid);
	SendClientMessage(playerid, RED, string);
}
return 1;
}

Zo als het goed is

Ja ik geloof dat het zo goed moet zijn, 'kweet het alleen niet zeker hoor :*D

  • Author

Ok, bedankt ik zal kijke ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.