06.02.2014, 16:06
Hello,
when i tried to compile the Gamemode i had this error:
How i can fix it?
when i tried to compile the Gamemode i had this error:
Quote:
C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : warning 217: loose indentation C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : error 017: undefined symbol "string22" C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : warning 215: expression has no effect C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : error 001: expected token: ";", but found "]" C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : error 029: invalid expression, assumed zero C:\Users\Name\Desktop\Samp\gamemodes\Samp2.pwn(471 5) : fatal error 107: too many error messages on one line |
Code:
//----------------------------------------------------------------------------------------- TazerAcceso[playerid] = 0; ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true); ShiftTimer[playerid] = SetTimerEx("ShiftFunction", 200, true, "e", playerid); TextDrawShowForPlayer(playerid, Text:textcl5); gPlayerUsingLoopingAnim[playerid] = 0; gPlayerAnimLibsPreloaded[playerid] = 0; new name[MAX_PLAYER_NAME]; string22[100+MAX_PLAYER_NAME]; new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); new namestring = strfind(plname, "_", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_YELLOW2, "{37F906}INFO:{FFFFFF} This name cannot be use."); SendClientMessage(playerid, COLOR_YELLOW2, "{37F906}INFO:{FFFFFF} Your name must be Name_Surname."); SendClientMessage(playerid, COLOR_YELLOW2, "{37F906}INFO:{FFFFFF} Example: Nick_Wronx."); Kick(playerid); return 1; }