01.05.2012, 08:25
Hello there everyone, Today I tried to script /weapontraining but I got a few errors all the time somewhy..
Error lines;
The scripting code is;
Error lines;
pawn Код:
C:\Documents and Settings\Lindvall\Skrivbord\Raven's Roleplay 0.3c V4.2\gamemodes\larp.pwn(59291) : error 001: expected token: ")", but found "{"
C:\Documents and Settings\Lindvall\Skrivbord\Raven's Roleplay 0.3c V4.2\gamemodes\larp.pwn(59292) : error 027: invalid character constant
C:\Documents and Settings\Lindvall\Skrivbord\Raven's Roleplay 0.3c V4.2\gamemodes\larp.pwn(59292) : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
if(strcmp(cmd, "/weapontraining", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625)
{
ShowPlayerDialog(playerid, 6666,DIALOG_STYLE_MSGBOX, "Which firearm would you like to train?\n Colt45\Pumpshotgun", "Choose","Cancel");
}
return 1;
}