G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(563) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(590) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(595) : warning 219: local variable "string" shadows a variable at a preceding level G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(623) : warning 219: local variable "string" shadows a variable at a preceding level G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(638) : warning 219: local variable "tmp" shadows a variable at a preceding level G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(640) : warning 219: local variable "playername" shadows a variable at a preceding level G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(675) : warning 219: local variable "playername" shadows a variable at a preceding level G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(703) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(707) : error 017: undefined symbol "gPlayerLogged" G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(707) : warning 215: expression has no effect G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(707) : error 001: expected token: ";", but found "]" G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(707) : error 029: invalid expression, assumed zero G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(707) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if (strcmp(cmdtext, "/lock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFF004040,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, 0x33AA33AA, "Vehicle locked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFF004040, "You're not in a vehicle!"); } return 1; } //----------------------------[ AFK ]------------------------------------------ if(strcmp(cmdtext, "/afk", true) == 0) { new string[256]; SetPlayerInterior(playerid,3); SetPlayerPos(playerid,198.3797,160.8905,1003.0300); SetPlayerFacingAngle(playerid,177.0350); SetCameraBehindPlayer(playerid); PlayerPlaySound(playerid,1082,198.3797,160.8905,1003.0300); TogglePlayerControllable(playerid,0); new away[MAX_PLAYER_NAME]; GetPlayerName(playerid, away, MAX_PLAYER_NAME); format(string, sizeof(string), "%s is away!", away); SendClientMessageToAll(0xFF9933AA, string); return 1; }
//----------------------------[ END OF ADMIN COMMANDS ]------------------------- //----------------------------[ LOCK ]------------------------------------------ if (strcmp(cmdtext, "/lock", true)==0) { if(IsPlayerInAnyVehicle(playerid)) { new State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFF004040,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, 0x33AA33AA, "Vehicle locked!"); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid,pX,pY,pZ); PlayerPlaySound(playerid,1056,pX,pY,pZ); } else { SendClientMessage(playerid, 0xFF004040, "You're not in a vehicle!"); } return 1; } //----------------------------[ AFK ]------------------------------------------ if(strcmp(cmdtext, "/afk", true) == 0) { new string[256]; SetPlayerInterior(playerid,3); SetPlayerPos(playerid,198.3797,160.8905,1003.0300); SetPlayerFacingAngle(playerid,177.0350); SetCameraBehindPlayer(playerid); PlayerPlaySound(playerid,1082,198.3797,160.8905,1003.0300); TogglePlayerControllable(playerid,0); new away[MAX_PLAYER_NAME]; GetPlayerName(playerid, away, MAX_PLAYER_NAME); format(string, sizeof(string), "%s is away!", away); SendClientMessageToAll(0xFF9933AA, string); return 1; }
Originally Posted by » ded «
Ok, try and compile it with this. There will be some warnings about indentation because to be honest .. it's fucking horrible. But it should compile with no errors
http://pastebin.com/d12961aaa |
Originally Posted by » ded «
Ok, try and compile it with this. There will be some warnings about indentation because to be honest .. it's fucking horrible. But it should compile with no errors
http://pastebin.com/d12961aaa |
G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(162) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(177) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(180) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(194) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(196) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(204) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(214) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(216) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(217) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(282) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(284) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(304) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(322) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(324) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(325) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(329) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(334) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(344) : warning 217: loose indentation
Originally Posted by RSX
703 - don't know, you have wierd command placements, you should get they all to normal
|
Originally Posted by st.anger
Quote:
Quote:
Код:
G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(162) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(177) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(180) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(194) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(196) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(204) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(214) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(216) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(217) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(282) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(284) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(304) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(322) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(324) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(325) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(329) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(334) : warning 217: loose indentation G:\samp02Xserver.win32\gamemodes\AntonioRP.pwn(344) : warning 217: loose indentation |
dcmd_kick(playerid,params[]) { if(playerdata....etc) { // etc } return 1; // <==== here you loose indentation }
dcmd_kick(playerid,params[]) { if(playerdata....etc) { // etc } return 1; }