Ich habe ein FS denn Housecreator
nur geht das nicht weil wenn ich createhouse mache sagt er mir ich bin kein Admin
jetzt wollte ich das umändern
hier mal der code so wie er ist
dcmd_createhouse(playerid,params[]) {
#pragma unused params
if(IsPlayerConnected(playerid)){
//if(PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
new Sell, lvl;
if(sscanf(params, "ii", Sell, lvl)) return SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /createhouse [sellprice] [HouseLvl]");
if(Sell < 0 || Sell > 5000000) return SendClientMessage(playerid, COLOR_WHITE, "You cannot set the sell price below 0 or above 5 Mill");
if(lvl < 0 || lvl > 12) return SendClientMessage(playerid, COLOR_WHITE, "You cannot create a house lvl that is below 0 or above 12");
CreatePlayerHouse(playerid, Sell, lvl); }
return true;
}
und so habe ich das gemacht
dcmd_createhouse(playerid,params[]) {
#pragma unused params
if(IsPlayerConnected(playerid)){
//if(PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
if(PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
new Sell, lvl;
if(sscanf(params, "ii", Sell, lvl)) return SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /createhouse [sellprice] [HouseLvl]");
if(Sell < 0 || Sell > 5000000) return SendClientMessage(playerid, COLOR_WHITE, "You cannot set the sell price below 0 or above 5 Mill");
if(lvl < 0 || lvl > 12) return SendClientMessage(playerid, COLOR_WHITE, "You cannot create a house lvl that is below 0 or above 12");
CreatePlayerHouse(playerid, Sell, lvl); }
return true;
}
aber da bekomme ich errors
C:\Users\Mipu\Desktop\GTA Sa\filterscripts\Homes.pwn(489) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mipu\Desktop\GTA Sa\filterscripts\Homes.pwn(489) : warning 215: expression has no effect
C:\Users\Mipu\Desktop\GTA Sa\filterscripts\Homes.pwn(489) : error 001: expected token: ";", but found "]"
C:\Users\Mipu\Desktop\GTA Sa\filterscripts\Homes.pwn(489) : error 029: invalid expression, assumed zero
C:\Users\Mipu\Desktop\GTA Sa\filterscripts\Homes.pwn(489) : 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.
hoffe mir kann jemand helfen