little help pleaze?
#3

Does the Define names Matter? i mean look at this
pawn Код:
#define PAKISTAN 1
#define USA 2
so if we add Only 1
pawn Код:
if(gTeam[playerid] == 1)
it does matter? btw

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == 1)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == 2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
it's errors
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(333) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(339) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(374) : warning 217: loose indentation
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(520) : error 017: undefined symbol "sscanf"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(519) : warning 203: symbol is never used: "ammount"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(519) : warning 203: symbol is never used: "targetid"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(554) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(554) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
and when i change it to

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == PAKISTAN 1)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == USA 2)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
    return true;
}
it's errors

pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ")", but found "-integer value-"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : warning 215: expression has no effect
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ";", but found ")"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 029: invalid expression, assumed zero
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : 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.
Reply


Messages In This Thread
little help pleaze? - by Mr_Scripter - 09.11.2011, 04:59
Re: little help pleaze? - by Norn - 09.11.2011, 05:04
Re: little help pleaze? - by Mr_Scripter - 09.11.2011, 05:12
Re: little help pleaze? - by Mr_Scripter - 09.11.2011, 05:16
Re: little help pleaze? - by Psymetrix - 09.11.2011, 05:18
Re: little help pleaze? - by Mr_Scripter - 09.11.2011, 05:20
Re: little help pleaze? - by Mr_Scripter - 09.11.2011, 05:25
Re: little help pleaze? - by Norn - 09.11.2011, 05:30
Re: little help pleaze? - by Mr_Scripter - 09.11.2011, 05:32
Re: little help pleaze? - by Psymetrix - 09.11.2011, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)