D:\\Util\\SA-MP\\samp03asvr_R8_win32\\filterscripts\\admin.pwn(5) : error 001: expected token: \";\", but found \"-identifier-\"D:\\Util\\SA-MP\\samp03asvr_R8_win32\\filterscripts\\admin.pwn(13) : warning 225: unreachable code\\filterscripts\\admin.pwn(13) : warning 217: loose indentation\\filterscripts\\admin.pwn(15) : error 029: invalid expression, assumed zero\\filterscripts\\admin.pwn(15) : error 004: function \"OnPlayerRequestSpawn\" is not implemented\\filterscripts\\admin.pwn(27) : warning 225: unreachable code\\filterscripts\\admin.pwn(27) : warning 217: loose indentation\\filterscripts\\admin.pwn(30) : warning 217: loose indentation\\filterscripts\\admin.pwn(30) : error 029: invalid expression, assumed zero\\filterscripts\\admin.pwn(30) : error 004: function \"OnGameModeInit\" is not implemented\\filterscripts\\admin.pwn(36) : error 030: compound statement not closed at the end of file (started at line 17)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 6 Errors.
#include <a_samp>new PClassID[MAX_PLAYERS]main(){}public OnPlayerRequestClass(playerid, classid){PClassID[playerid] = classid;return 1;{public OnPlayerRequestSpawn(playerid){if(PClassID[playerid] == 1){ if(IsPlayerAdmin(playerid)) { return 1;}else{ return 0;}return 1;}public OnGameModeInit(){ AddPlayerClass(217,0.0,0.0,0.0,0.0,0,0,0,0,0,0); //admin skinreturn 1;}
public OnPlayerRequestSpawn(playerid){if(PClassID[playerid] == 1){ if(IsPlayerAdmin(playerid)) { return 1; } else { return 0; } } }return 1;}[/quote]Így valahogy.Ja meg: new PClassID[MAX_PLAYERS] Ezt így: new PClassID[MAX_PLAYERS];
new PClassID[MAX_PLAYERS]
new PClassID[MAX_PLAYERS];
D:\\Util\\SA-MP\\samp03asvr_R8_win32\\filterscripts\\admin.pwn(13) : warning 225: unreachable codeD:\\Util\\SA-MP\\samp03asvr_R8_win32\\filterscripts\\admin.pwn(13) : warning 217: loose indentation\\filterscripts\\admin.pwn(14) : error 029: invalid expression, assumed zero\\filterscripts\\admin.pwn(14) : error 004: function \"OnPlayerRequestSpawn\" is not implemented\\filterscripts\\admin.pwn(22) : warning 217: loose indentation\\filterscripts\\admin.pwn(28) : warning 217: loose indentation\\filterscripts\\admin.pwn(30) : warning 225: unreachable code\\filterscripts\\admin.pwn(30) : error 029: invalid expression, assumed zero\\filterscripts\\admin.pwn(30) : error 004: function \"OnGameModeInit\" is not implemented\\filterscripts\\admin.pwn(36) : error 030: compound statement not closed at the end of file (started at line 11)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
3x próbáltamMinden olyan amilyennek lennie kell. #include <a_samp>new PClassID[MAX_PLAYERS]main(){}public OnPlayerRequestClass(playerid, classid){PClassID[playerid] = classid;return 1;{public OnPlayerRequestSpawn(playerid){if(PClassID[playerid] == 1){ if(IsPlayerAdmin(playerid)) { return 1;}else{ return 0;}return 1;}public OnGameModeInit(){ AddPlayerClass(217,0.0,0.0,0.0,0.0,0,0,0,0,0,0); //admin skinreturn 1;}
#include a_samppublic OnGameModeInit(){ AddPlayerClass(217,0.0,0.0,0.0,0.0,0,0,0,0,0,0); //admin skinreturn 1;}public OnPlayerSpawn(playerid){if(GetPlayerSkin(playerid)==217 && !IsPlayerAdmin(playerid)){ GameTextForPlayer(playerid, \"Ez admin skin!\", 5000, 1);SetPlayerHealth(playerid, 0);ForceClassSelection(playerid);}return 1;}
public OnPlayerRequestSpawn(playerid){ new SkinID = GetPlayerSkin(playerid); if(SkinID == 217 || SkinID == 0 || SkinID == 0 || SkinID == 0)//ide még rakhatsz be { if(IsPlayerAdmin(playerid) == 0) { GameTextForPlayer(playerid, \"~g~Ha valaki ki akarja választani a skint mit írjon!\", 750, 3); return 0; }}return 1;}