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.
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;
}
Hello guys, i'm getting some errors here
pawn Код:
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;
}
#define PAKISTAN 1
#define USA 2
if(gTeam[playerid] == 1)
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;
}
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.
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;
}
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.
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(334) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(340) : warning 202: number of arguments does not match definition
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(556) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(556) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == PAKISTAN)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
return 1;
}
else if(gTeam[playerid] == USA)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
return 1;
}
return true;
}
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "SetPlayerToTeamColor"
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(555) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Sorry for double posting but here
pawn Код:
|