15.05.2012, 19:12
Name says everything pls help
if(IsPlayerAdmin(playerid)) { //codes }
if(IsPlayerAdmin(playerid)) SendClientMessageToAll(0xDEEE20FF, "Welcome admin!");
else SendClientMessageToAll(0xDEEE20FF, "You're not an admin!");
{
if (strcmp("/tune", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Your car has not been tuned as you're not in one.");
TuneVehicleRandomly(GetPlayerVehicleID(playerid));
return SendClientMessage(playerid,-1,"Your car has been tuned.");
}
return 0;
}
if (strcmp("/tune", cmdtext, true, 10) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an admin!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Your car has not been tuned as you're not in one."); TuneVehicleRandomly(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid,-1,"Your car has been tuned."); } return 0; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 4)
if (strcmp("/tune", cmdtext, true, 10) == 0) { if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1, "You are not an admin!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Your car has not been tuned as you're not in one."); TuneVehicleRandomly(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid,-1,"Your car has been tuned."); } return 0; }
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(34) : warning 217: loose indentation
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(43) : warning 213: tag mismatch
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(214) : error 017: undefined symbol "PlayerInfo"
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(214) : warning 215: expression has no effect
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(214) : error 001: expected token: ";", but found "]"
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(214) : error 029: invalid expression, assumed zero
C:\Users\Snor!\Desktop\Real Life ENG\filterscripts\tune.pwn(214) : 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.