error???
#1

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

Show more code please.
Reply
#3

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...
Reply
#4

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

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..
Reply
#6

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)