New Errors in same command - 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: New Errors in same command (
/showthread.php?tid=428636)
New Errors in same command -
yaron0600 - 06.04.2013
New errors in /getdeliver command ;
This is the command :
Код:
CMD:getdeliver(playerid, params[])
{
if (PlayerInfo[playerid][pJob] != 0 && PlayerInfo[playerid][pJob2] != 0)
{
SendClientMessageEx(playerid,COLOR_GREY," You are not working in other job already [For work for that /quitjob]");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if(!(IsADeliverCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
SendClientMessageEx(playerid,COLOR_GREY," You need to be driving a Deliver Walton!");
return 1;
}
if(!(GetPlayerSkin(playerid) == 29))
{
SendClientMessageEx(playerid,COLOR_GREY," You need to be in the Deliver Man uniform!");
return 1;
}
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if (!IsPlayerInRangeOfPoint(playerid, 3.0, -1713.961425, 1348.545166, 7.180452))
{
SendClientMessageEx(playerid,COLOR_GREY," You are not at the Delivering pickup!");
return 1;
}
if(GetPVarInt(playerid, "Delivering") > 0)
{
SendClientMessageEx(playerid, COLOR_GREY, " You are already delivering the illeagel stuff!");
return 1;
}
new szMessage[128];
format(szMessage, sizeof(szMessage), "You have picked up the Deliver for 2000$ ));
SendClientMessageEx(playerid, COLOR_WHITE, szMessage);
return 1;
}
Код:
d:\Users\User\Desktop\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(65812) : error 037: invalid string (possibly non-terminated string)
d:\Users\User\Desktop\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(65812) : error 017: undefined symbol "You"
d:\Users\User\Desktop\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(65812) : error 017: undefined symbol "have"
d:\Users\User\Desktop\SSS\Script[ONLY TO YOU]\AMRP\gamemodes\NQRP.pwn(65812) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
The errors line are here :
Код:
format(szMessage, sizeof(szMessage), "You have picked up the Deliver for 2000$ ));
Re: New Errors in same command -
judothijs - 06.04.2013
Remove the last ), you got 2 of them instead of 1.
Re: New Errors in same command -
MattyG - 06.04.2013
You also need another " after the $ sign.
Re: New Errors in same command -
yaron0600 - 06.04.2013
Same Errors