command error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: command error (
/showthread.php?tid=469187)
command error -
Superhot - 12.10.2013
Код:
CMD:dbike(playerid,params[]) // can i show u something? somwthing what?
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
if(PlayerInfo[playerid][dRank] >= 2)
{
CarSpawner(playerid,522);
SendClientMessage(playerid,blue,"Bike Spawned.");
SendCMDMessge(playerid,"DBIKE");
}
else return SendClientMessage(playerid,red,"ERROR: You Need Atleast Donor Rank 2 To Use This Command");
}
else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
return 1;
}
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10414) : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10416) : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(1041

: error 010: invalid function or declaration
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10421) : error 021: symbol already defined: "SendClientMessage"
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10423) : error 054: unmatched closing brace ("}")
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10424) : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10426) : error 010: invalid function or declaration
C:\Users\SAMP\Desktop\MW3 TDM\gamemodes\backupmw3.pwn(10427) : error 010: invalid function or declaration
Re: command error -
Superhot - 12.10.2013
Fixed. I didnt have a closing bracket before the command.
Re: command error -
EiresJason - 12.10.2013
You left/have 1more "}" in the command above CMD:dbike.
pawn Код:
//code for the command above dbike.
}
CMD:dbike(playerid,params[]) // can i show u something? somwthing what?
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
if(PlayerInfo[playerid][dRank] >= 2)
{
CarSpawner(playerid,522);
SendClientMessage(playerid,blue,"Bike Spawned.");
SendCMDMessge(playerid,"DBIKE");
}
else return SendClientMessage(playerid,red,"ERROR: You Need Atleast Donor Rank 2 To Use This Command");
}
else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
return 1;
}