15.12.2012, 14:19
Thanks all, I got one more problem when trying to add my script though..
pawn Code:
COMMAND:help(playerid, params[])
{
new message[28];
if (!sscanf(params, "s",message))
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(message, sizeof(message), "%s asks: %s", name, message);
HelpRequest(-1, message);
return 1;
}
Code:
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(282) : error 003: declaration of a local variable must appear in a compound block C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(282) : error 017: undefined symbol "name" C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(282) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(282) : error 001: expected token: ";", but found "]" C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(282) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.