01.10.2013, 17:23
Код:
public OnPlayerRequestClass(playerid, classid) { if(gPlayerTeam[playerid] == -1) { ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Grove Class\nBalla Class\nVagos Class\nAztecas Class\nSlut Class\nAmmunution class\nBoss Class", "Choose",""); TogglePlayerSpectating(playerid, 1); SetPlayerPos(playerid,2519.8140,-1678.8607,14.8426); SetPlayerFacingAngle(playerid,63.1557); SetPlayerCameraPos(playerid,2513.6995,-1675.4047,13.5563); SetPlayerCameraLookAt(playerid,2519.8140,-1678.8607,14.8426); return 1; } }
And yeah this is the warning:
C:\Users\MARKO\Desktop\Learning\gamemodes\Test.pwn (7 : warning 209: function "OnPlayerRequestClass" should return a value