15.12.2010, 15:07
I tried adding /skick2 command to be used by helpers level 1336+ to kick hackes when admins are offline etc...
Here's the command
ERRORS:
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31745) : error 017: undefined symbol "IsPlayerConntected"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31747) : error 017: undefined symbol "INVAILD_PLAYER_ID"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31753) : error 017: undefined symbol "Sendername"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31774) : error 029: invalid expression, assumed zero
Here's the command
Quote:
I tried adding /skick2 command to be used by helpers level 1336+ to kick hackes when admins are offline etc...
Here's the command if(strcmp(cmd, "/skick2", true) ==0) { if(IsPlayerConnected(giveplayerid) ) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skick2 [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerNPC(giveplayerid)) return 1; if(PlayerInfo[playerid][pHelper] >= 1336) { if(IsPlayerConntected(giveplayerid)) { if(giveplayerid != INVAILD_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(PlayerInfo[giveplayerid][pHelper] > PlayerInfo[playerid][pHelper]) { format(string, sizeof(string), "HelpCmd: %s was Hskicked, reason: Attempting to silent kick a higher level Helper/Admin.", Sendername); ABroadCast(COLOR_LIGHTGREEN, string, 1); Kick(playerid); return 1; } format(string, sizeof(string),"HelpCmd: %s was Hskicked by %s", giveplayer,sendername); ABroadCast(COLOR_LIGHTGREEN, string, 1); Kick(giveplayerid); } } else { format(string, sizeof(string), " That player is offline or you mistyped its name!", giveplayerid); SendClientMessage(playerid, COLOR_LIGHTGREEN, string); } } else { SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command !"); } } else { SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command !"); } } return 1; } ERRORS: C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31745) : error 017: undefined symbol "IsPlayerConntected" C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31747) : error 017: undefined symbol "INVAILD_PLAYER_ID" C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31753) : error 017: undefined symbol "Sendername" C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31774) : error 029: invalid expression, assumed zero |
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31745) : error 017: undefined symbol "IsPlayerConntected"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31747) : error 017: undefined symbol "INVAILD_PLAYER_ID"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31753) : error 017: undefined symbol "Sendername"
C:\Documents and Settings\ЗдУ ИСЯЗК\My Documents\My Received Files\GTA-RLRP.pwn(31774) : error 029: invalid expression, assumed zero