Slap command help
#4

pawn Код:
GetPlayerName(playerid, GetName, sizeof(GetName));
    format(string, sizeof(string), "You have successfully slapped %s!", GetName(id));
Jake, I changed the variable into GetNameSlap and now have the following errors.

pawn Код:
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1220) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1221) : error 012: invalid function call, not a valid address
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1221) : warning 215: expression has no effect
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1221) : error 001: expected token: ";", but found ")"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1221) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1221) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Although I'm not sure what you mean by telling me to properly indent my code with brackets?
Reply


Messages In This Thread
Slap command help - by Vasu99 - 02.03.2014, 18:58
Re: Slap command help - by Brandon_More - 02.03.2014, 19:01
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:05
Re: Slap command help - by Vasu99 - 02.03.2014, 19:10
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:16
Re: Slap command help - by Vasu99 - 02.03.2014, 19:18
Re: Slap command help - by Konstantinos - 02.03.2014, 19:41
Re: Slap command help - by jakejohnsonusa - 02.03.2014, 19:42
Re: Slap command help - by Vasu99 - 02.03.2014, 19:42
AW: Slap command help - by ZaakWest - 02.03.2014, 19:44

Forum Jump:


Users browsing this thread: 3 Guest(s)