SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error??? (/showthread.php?tid=136139)



error??? - Brian_Furios - 23.03.2010

I have this error:

pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(22347) : error 029: invalid expression, assumed zero
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(22347) : warning 215: expression has no effect
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(22347) : error 001: expected token: ";", but found ")"
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(22347) : error 029: invalid expression, assumed zero
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(22347) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
the error script is:

pawn Код:
if(PlayerInfo[playerid][pCell] == 0) || PlayerInfo[playerid][pSim] == 0)
            {
                SendClientMessage(playerid, COLOR_GRAD2, " You dont have a cellphone or a SIM card!");
                return 1;
            }



Re: error??? - Zimon95 - 23.03.2010

Show more code please.


Re: error??? - Brian_Furios - 23.03.2010

Quote:
Originally Posted by Zimon95
Show more code please.
pawn Код:
if(strcmp(cmd, "/call", true) == 0)
    {
      if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /call[numero cellulare]");
                return 1;
            }
            if(PlayerInfo[playerid][pCell] == 0) || PlayerInfo[playerid][pSim] == 0)
            {
                SendClientMessage(playerid, COLOR_GRAD2, " You dont have a cellphone or a SIM Card!");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s take out his cellphone.", sendername);
            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            new phonenumb = strval(tmp);

contiunue the script...



Re: error??? - Zimon95 - 23.03.2010

This:
pawn Код:
if(PlayerInfo[playerid][pCell] == 0) || PlayerInfo[playerid][pSim] == 0)
Should be:
pawn Код:
if(PlayerInfo[playerid][pCell] == 0 || PlayerInfo[playerid][pSim] == 0)



Re: error??? - Jay420 - 23.03.2010

pawn Код:
if(PlayerInfo[playerid][pCell] == 0 || PlayerInfo[playerid][pSim] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have a cellphone or a SIM card!");
return 1;
}
Try this one.. lol

EDIT: Damn I weren't a quick typer..


Re: error??? - Brian_Furios - 23.03.2010

Quote:
Originally Posted by Zimon95
This:
pawn Код:
if(PlayerInfo[playerid][pCell] == 0) || PlayerInfo[playerid][pSim] == 0)
Should be:
pawn Код:
if(PlayerInfo[playerid][pCell] == 0 || PlayerInfo[playerid][pSim] == 0)
yeah this work thx..