Custom function
#5

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.
Reply


Messages In This Thread
Custom function - by Lz - 15.12.2012, 13:58
Re: Custom function - by Djole1337 - 15.12.2012, 14:00
Re: Custom function - by Threshold - 15.12.2012, 14:01
Re: Custom function - by Mean - 15.12.2012, 14:02
Re: Custom function - by Lz - 15.12.2012, 14:19
Re: Custom function - by XStormiest - 15.12.2012, 14:33
Re: Custom function - by Lordzy - 15.12.2012, 14:38

Forum Jump:


Users browsing this thread: 3 Guest(s)