New Errors in same command
#1

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$ ));
Reply
#2

Remove the last ), you got 2 of them instead of 1.
Reply
#3

You also need another " after the $ sign.
Reply
#4

Same Errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)