28.12.2010, 13:53
I have a problem with my server.
public OnPlayerSpawn(playerid)
{
IsPlayerNPC(playerid);
{
SetPlayerPos(playerid,1463.9557,-1732.1586,13.382;
SetPlayerColor(playerid, COLOR_RED);
SendClientMessageToAll(COLOR_RED, "Ein neuer Zombie ist da!!");
}
else
{
SetPlayerPos(playerid,1463.9557,-1732.1586,13.382;
SetPlayerColor(playerid, COLOR_GREEN);
GivePlayerWeapon(playerid, 27, 500);
SetPlayerArmedWeapon(playerid, 27);
return 1;
}
return 0;
}
This isn't the full script!
When I test the server its says :
C:\Users\Kenny\Downloads\SAMP\Kenny\gamemodes\Blue Server.pwn(137) : error 029: invalid expression, assumed zero
C:\Users\Kenny\Downloads\SAMP\Kenny\gamemodes\Blue Server.pwn(145) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Can somebody help me please??
public OnPlayerSpawn(playerid)
{
IsPlayerNPC(playerid);
{
SetPlayerPos(playerid,1463.9557,-1732.1586,13.382;
SetPlayerColor(playerid, COLOR_RED);
SendClientMessageToAll(COLOR_RED, "Ein neuer Zombie ist da!!");
}
else
{
SetPlayerPos(playerid,1463.9557,-1732.1586,13.382;
SetPlayerColor(playerid, COLOR_GREEN);
GivePlayerWeapon(playerid, 27, 500);
SetPlayerArmedWeapon(playerid, 27);
return 1;
}
return 0;
}
This isn't the full script!
When I test the server its says :
C:\Users\Kenny\Downloads\SAMP\Kenny\gamemodes\Blue Server.pwn(137) : error 029: invalid expression, assumed zero
C:\Users\Kenny\Downloads\SAMP\Kenny\gamemodes\Blue Server.pwn(145) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Can somebody help me please??