little help pleaze?
#2

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
Hello guys, i'm getting some errors here
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.
i don't think somethings wrong here

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == Teams 1);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
        return 1;
    }
    else if(gTeam[playerid] == Team 2);
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
        return 1;
    }
anyone know what the problem?
;'s are only valid when declaring something:

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;
}
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: 3 Guest(s)