AdminSkin Errors
#1

public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, PocketMoney);
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,1);
return 1;
}
if(GetPlayerSkin(playerid) == 115 && !IsPlayerAdmin(playerid))
{
ForceClassSelection(playerid);
return SetPlayerHealth(playerid,0);
}
return 1;
}


C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\lvd m.pwn(226) : error 010: invalid function or declaration
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\lvd m.pwn(229) : error 010: invalid function or declaration
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\lvd m.pwn(231) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


Yes, i have added the class id 115


Reply
#2

The problem is, once again, curly braces.

Код:
public OnPlayerSpawn(playerid)
{
	GivePlayerMoney(playerid, PocketMoney);
	SetPlayerInterior(playerid,0);
 	TogglePlayerClock(playerid,1);

	if(GetPlayerSkin(playerid) == 115 && !IsPlayerAdmin(playerid))
	{
		ForceClassSelection(playerid);
		return SetPlayerHealth(playerid,0);
	}
	return 1;
}
Oh, and please next time use [ code] tags
Reply
#3

OH LOL THANKS!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)