C:\Users\Brandon\Desktop\New folder\pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Brandon\Desktop\New folder\pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Brandon\Desktop\New folder\pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Brandon\Desktop\New folder\pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Brandon\Desktop\New folder\pawno\include\rBits.inc(80) : error 025: function heading differs from prototype C:\Users\Brandon\Desktop\New folder\pawno\include\rBits.inc(80) : error 025: function heading differs from prototype C:\Users\Brandon\Desktop\New folder\pawno\include\rBits.inc(80) : error 025: function heading differs from prototype C:\Users\Brandon\Desktop\New folder\pawno\include\rBits.inc(80) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
new Query[1024], string[256]; new Text: RegisterLoginTD[MAX_PLAYERS][6], Text: RegisterLoginTD2[10], SelectedCharacter[MAX_PLAYERS] = 0, PlaceWhereIsCharacter[MAX_PLAYERS] = 0, InputedWord[MAX_PLAYERS][32]; new LoadingPercentage[MAX_PLAYERS] = 0; new Timer: CPLK[MAX_PLAYERS], Timer: CPRK[MAX_PLAYERS], Timer: LST[MAX_PLAYERS]; new rBit1: PlayerLogged <MAX_PLAYERS>; enum pInfo { pAdmin, pGameMaster, pKills, pDeaths }; new PlayerInfo[MAX_PLAYERS][pInfo]; public OnFilterScriptInit() { mysql_debug(1); mysql_connect("localhost", "root", "sa:mp", ""); if(mysql_ping() >= 1) print(" MySQL: Connecting successful!\n"); else print(" MySQL: Connecting unsuccessful!\n"); RegisterLoginTD2[0] = TextDrawCreate(590.000000, 119.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[0], 255); TextDrawFont(RegisterLoginTD2[0], 1); TextDrawLetterSize(RegisterLoginTD2[0], 0.000000, 22.899995); TextDrawColor(RegisterLoginTD2[0], -1); TextDrawSetOutline(RegisterLoginTD2[0], 0); TextDrawSetProportional(RegisterLoginTD2[0], 1); TextDrawSetShadow(RegisterLoginTD2[0], 1); TextDrawUseBox(RegisterLoginTD2[0], 1); TextDrawBoxColor(RegisterLoginTD2[0], 80); TextDrawTextSize(RegisterLoginTD2[0], 48.000000, 20.000000); RegisterLoginTD2[1] = TextDrawCreate(323.000000, 140.000000, "Welcome to ~b~Infusion Gaming"); TextDrawAlignment(RegisterLoginTD2[1], 2); TextDrawBackgroundColor(RegisterLoginTD2[1], 255); TextDrawFont(RegisterLoginTD2[1], 2); TextDrawLetterSize(RegisterLoginTD2[1], 0.599999, 2.000000); TextDrawColor(RegisterLoginTD2[1], 11322367); TextDrawSetOutline(RegisterLoginTD2[1], 0); TextDrawSetProportional(RegisterLoginTD2[1], 1); TextDrawSetShadow(RegisterLoginTD2[1], 1); RegisterLoginTD2[2] = TextDrawCreate(530.000000, 220.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[2], 255); TextDrawFont(RegisterLoginTD2[2], 1); TextDrawLetterSize(RegisterLoginTD2[2], 0.000000, 2.000000); TextDrawColor(RegisterLoginTD2[2], -1); TextDrawSetOutline(RegisterLoginTD2[2], 0); TextDrawSetProportional(RegisterLoginTD2[2], 1); TextDrawSetShadow(RegisterLoginTD2[2], 1); TextDrawUseBox(RegisterLoginTD2[2], 1); TextDrawBoxColor(RegisterLoginTD2[2], -757935536); TextDrawTextSize(RegisterLoginTD2[2], 108.000000, 0.000000); RegisterLoginTD2[3] = TextDrawCreate(650.000000, 1.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[3], 255); TextDrawFont(RegisterLoginTD2[3], 1); TextDrawLetterSize(RegisterLoginTD2[3], 0.000000, 12.000000); TextDrawColor(RegisterLoginTD2[3], -1); TextDrawSetOutline(RegisterLoginTD2[3], 0); TextDrawSetProportional(RegisterLoginTD2[3], 1); TextDrawSetShadow(RegisterLoginTD2[3], 1); TextDrawUseBox(RegisterLoginTD2[3], 1); TextDrawBoxColor(RegisterLoginTD2[3], 255); TextDrawTextSize(RegisterLoginTD2[3], -4.000000, 100.000000); RegisterLoginTD2[4] = TextDrawCreate(650.000000, 338.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[4], 255); TextDrawFont(RegisterLoginTD2[4], 1); TextDrawLetterSize(RegisterLoginTD2[4], 0.000000, 12.000000); TextDrawColor(RegisterLoginTD2[4], -1); TextDrawSetOutline(RegisterLoginTD2[4], 0); TextDrawSetProportional(RegisterLoginTD2[4], 1); TextDrawSetShadow(RegisterLoginTD2[4], 1); TextDrawUseBox(RegisterLoginTD2[4], 1); TextDrawBoxColor(RegisterLoginTD2[4], 255); TextDrawTextSize(RegisterLoginTD2[4], -4.000000, 100.000000); RegisterLoginTD2[5] = TextDrawCreate(650.000000, 336.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[5], 255); TextDrawFont(RegisterLoginTD2[5], 1); TextDrawLetterSize(RegisterLoginTD2[5], 0.000000, 0.000000); TextDrawColor(RegisterLoginTD2[5], -1); TextDrawSetOutline(RegisterLoginTD2[5], 0); TextDrawSetProportional(RegisterLoginTD2[5], 1); TextDrawSetShadow(RegisterLoginTD2[5], 1); TextDrawUseBox(RegisterLoginTD2[5], 1); TextDrawBoxColor(RegisterLoginTD2[5], 11322367); TextDrawTextSize(RegisterLoginTD2[5], -4.000000, 100.000000); RegisterLoginTD2[6] = TextDrawCreate(650.000000, 111.000000, "."); TextDrawBackgroundColor(RegisterLoginTD2[6], 255); TextDrawFont(RegisterLoginTD2[6], 1); TextDrawLetterSize(RegisterLoginTD2[6], 0.000000, 0.000000); TextDrawColor(RegisterLoginTD2[6], -1); TextDrawSetOutline(RegisterLoginTD2[6], 0); TextDrawSetProportional(RegisterLoginTD2[6], 1); TextDrawSetShadow(RegisterLoginTD2[6], 1); TextDrawUseBox(RegisterLoginTD2[6], 1); TextDrawBoxColor(RegisterLoginTD2[6], 11322367); TextDrawTextSize(RegisterLoginTD2[6], -4.000000, 100.000000); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerDisconnect(playerid, reason) { format(InputedWord[playerid], 25, "\0"); for(new td = 0; td <= 5; td++) { TextDrawHideForPlayer(playerid, RegisterLoginTD[playerid][td]); TextDrawDestroy(RegisterLoginTD[playerid][td]); } for(new td2 = 0; td2 <= 6; td2++) { TextDrawHideForPlayer(playerid, RegisterLoginTD2[td2]); } return 1; } public OnPlayerSpawn(playerid) { PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); return 1; } public OnPlayerRequestClass(playerid, classid) { PlayerPlaySound(playerid, 1185, 0, 0, 0); SetPlayerCameraPos(playerid, 1579.94, -1304.85, 122.40); SetPlayerCameraLookAt(playerid, 1577.19, -1309.03, 126.39); TogglePlayerSpectating(playerid, 1); defer RemoveClassSelection(playerid); LST[playerid] = repeat LoadingScreenTimer(playerid); for(new chat = 0; chat <= 30; chat++) { SendClientMessage(playerid, -1, ""); } RegisterLoginTD[playerid][0] = TextDrawCreate(330.000000, 170.000000, "Welcome %s~n~~n~Please type your password Below!"); TextDrawAlignment(RegisterLoginTD[playerid][0], 2); TextDrawBackgroundColor(RegisterLoginTD[playerid][0], 255); TextDrawFont(RegisterLoginTD[playerid][0], 1); TextDrawLetterSize(RegisterLoginTD[playerid][0], 0.500000, 1.000000); TextDrawColor(RegisterLoginTD[playerid][0], -1); TextDrawSetOutline(RegisterLoginTD[playerid][0], 0); TextDrawSetProportional(RegisterLoginTD[playerid][0], 1); TextDrawSetShadow(RegisterLoginTD[playerid][0], 1); RegisterLoginTD[playerid][1] = TextDrawCreate(59.000000, 270.000000, "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); TextDrawBackgroundColor(RegisterLoginTD[playerid][1], 255); TextDrawFont(RegisterLoginTD[playerid][1], 2); TextDrawLetterSize(RegisterLoginTD[playerid][1], 0.589999, 2.000000); TextDrawColor(RegisterLoginTD[playerid][1], -1); TextDrawSetOutline(RegisterLoginTD[playerid][1], 0); TextDrawSetProportional(RegisterLoginTD[playerid][1], 1); TextDrawSetShadow(RegisterLoginTD[playerid][1], 1); RegisterLoginTD[playerid][2] = TextDrawCreate(313.000000, 248.000000, "LOGIN DELETE"); TextDrawAlignment(RegisterLoginTD[playerid][2], 2); TextDrawBackgroundColor(RegisterLoginTD[playerid][2], 255); TextDrawFont(RegisterLoginTD[playerid][2], 2); TextDrawLetterSize(RegisterLoginTD[playerid][2], 0.500000, 1.000000); TextDrawColor(RegisterLoginTD[playerid][2], -1); TextDrawSetOutline(RegisterLoginTD[playerid][2], 0); TextDrawSetProportional(RegisterLoginTD[playerid][2], 1); TextDrawSetShadow(RegisterLoginTD[playerid][2], 1); RegisterLoginTD[playerid][3] = TextDrawCreate(316.000000, 219.000000, "PASSWORD"); TextDrawAlignment(RegisterLoginTD[playerid][3], 2); TextDrawBackgroundColor(RegisterLoginTD[playerid][4], 255); TextDrawFont(RegisterLoginTD[playerid][3], 2); TextDrawLetterSize(RegisterLoginTD[playerid][3], 0.599999, 2.000000); TextDrawColor(RegisterLoginTD[playerid][3], 11322367); TextDrawSetOutline(RegisterLoginTD[playerid][3], 1); TextDrawSetProportional(RegisterLoginTD[playerid][3], 1); RegisterLoginTD[playerid][4] = TextDrawCreate(240.000000, 100.000000, "Password is incorrect!"); TextDrawBackgroundColor(RegisterLoginTD[playerid][4], 255); TextDrawFont(RegisterLoginTD[playerid][4], 1); TextDrawLetterSize(RegisterLoginTD[playerid][4], 0.500000, 1.000000); TextDrawColor(RegisterLoginTD[playerid][4], -16776961); TextDrawSetOutline(RegisterLoginTD[playerid][4], 0); TextDrawSetProportional(RegisterLoginTD[playerid][4], 1); TextDrawSetShadow(RegisterLoginTD[playerid][4], 1); RegisterLoginTD[playerid][5] = TextDrawCreate(321.000000, 212.000000, "100%~n~~w~Please Wait.."); TextDrawAlignment(RegisterLoginTD[playerid][5], 2); TextDrawBackgroundColor(RegisterLoginTD[playerid][5], 255); TextDrawFont(RegisterLoginTD[playerid][5], 2); TextDrawLetterSize(RegisterLoginTD[playerid][5], 0.500000, 1.000000); TextDrawColor(RegisterLoginTD[playerid][5], 11322367); TextDrawSetOutline(RegisterLoginTD[playerid][5], 0); TextDrawSetProportional(RegisterLoginTD[playerid][5], 1); TextDrawSetShadow(RegisterLoginTD[playerid][5], 1); TextDrawShowForPlayer(playerid, RegisterLoginTD[playerid][5]); for(new td = 3; td <= 6; td++) { TextDrawShowForPlayer(playerid, RegisterLoginTD2[td]); } return 1; } timer RemoveClassSelection[10](playerid) { SetPlayerCameraPos(playerid, 1579.94, -1304.85, 122.40); SetPlayerCameraLookAt(playerid, 1577.19, -1309.03, 126.39); } timer LoadingScreenTimer[100](playerid) { LoadingPercentage[playerid] ++; format(string, sizeof(string), "%d%%~n~~b~Please Wait..", LoadingPercentage[playerid]); TextDrawSetString(RegisterLoginTD[playerid][5], string); if(LoadingPercentage[playerid] == 100) { SendClientMessage(playerid, COLOR_YELLOW, "Use keys up-down and right-left and when you select action press F!"); format(string, sizeof(string), "Welcome %s~n~~n~Please type your password!", GetName(playerid)); TextDrawSetString(RegisterLoginTD[playerid][0], string); LoadingPercentage[playerid] = 0; TextDrawHideForPlayer(playerid, RegisterLoginTD[playerid][5]); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); SelectedCharacter[playerid] = 0; if(mysql_num_rows() == 1) { SendClientMessage(playerid, COLOR_LIME, "You are registered, please type your password!"); CPLK[playerid] = repeat CheckPlayerLoginKeys(playerid); TextDrawSetString(RegisterLoginTD[playerid][2], "LOGIN DELETE"); } else { SendClientMessage(playerid, COLOR_LIME, "You are not registered, please type your new password!"); CPRK[playerid] = repeat CheckPlayerRegisterKeys(playerid); TextDrawSetString(RegisterLoginTD[playerid][2], "REGISTER DELETE"); } TextDrawSetString(RegisterLoginTD[playerid][1], "~b~~h~A ~w~B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); for(new td = 0; td <= 2; td++) { TextDrawShowForPlayer(playerid, RegisterLoginTD[playerid][td]); } TextDrawShowForPlayer(playerid, RegisterLoginTD2[0]); TextDrawShowForPlayer(playerid, RegisterLoginTD2[1]); TextDrawShowForPlayer(playerid, RegisterLoginTD2[2]); stop LST[playerid]; } mysql_free_result(); return 1; } timer CheckPlayerLoginKeys[200](playerid) { new keys, ud, lr; GetPlayerKeys(playerid, keys, ud, lr); if(lr > 0) { SelectedCharacter[playerid] ++; TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); } else if(lr < 0) { SelectedCharacter[playerid] --; TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); } if(SelectedCharacter[playerid] == 0) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "~b~~h~A ~w~B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 1) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A ~b~~h~B ~w~C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 2) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B ~b~~h~C ~w~D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 3) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C ~b~~h~D ~w~E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 4) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D ~b~~h~E ~w~F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 5) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E ~b~~h~F ~w~G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 6) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F ~b~~h~G ~w~H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 7) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G ~b~~h~H ~w~I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 8) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H ~b~~h~I ~w~J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 9) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I ~b~~h~J ~w~K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 10) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J ~b~~h~K ~w~L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 11) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K ~b~~h~L ~w~M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 12) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L ~b~~h~M ~w~N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 13) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M ~b~~h~N ~w~O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 14) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N ~b~~h~O ~w~P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 15) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O ~b~~h~P ~w~R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 16) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P ~b~~h~R ~w~S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 17) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R ~b~~h~S~n~~w~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 18) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~~b~~h~T ~w~U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 19) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T ~b~~h~U ~w~V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 20) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U ~b~~h~V ~w~Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 21) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V ~b~~h~Z ~w~Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 22) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z ~b~~h~Q ~w~W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 23) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q ~b~~h~W ~w~Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 24) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W ~b~~h~Y ~w~X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 25) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y ~b~~h~X ~w~0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 26) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X ~b~~h~0 ~w~1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 27) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 ~b~~h~1 ~w~2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 28) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 ~b~~h~2 ~w~3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 29) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 ~b~~h~3 ~w~4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 30) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 ~b~~h~4 ~w~5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 31) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 ~b~~h~5 ~w~6 7 8 9"); } else if(SelectedCharacter[playerid] == 32) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 ~b~~h~6 ~w~7 8 9"); } else if(SelectedCharacter[playerid] == 33) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 ~b~~h~7 ~w~8 9"); } else if(SelectedCharacter[playerid] == 34) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 ~b~~h~8 ~w~9"); } else if(SelectedCharacter[playerid] == 35) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 ~b~~h~9"); } else if(SelectedCharacter[playerid] == 36) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~b~~h~LOGIN ~w~DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~b~~h~REGISTER ~w~DELETE"); PlaceWhereIsCharacter[playerid] = 2; } else if(SelectedCharacter[playerid] == 37) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN ~b~~h~DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER ~b~~h~DELETE"); PlaceWhereIsCharacter[playerid] = 2; } else if(SelectedCharacter[playerid] == 38) SelectedCharacter[playerid] = 0; else if(SelectedCharacter[playerid] == -1) SelectedCharacter[playerid] = 37; if(ud > 0) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); if(PlaceWhereIsCharacter[playerid] == 0) { SelectedCharacter[playerid] = 18; } if(PlaceWhereIsCharacter[playerid] == 1) { SelectedCharacter[playerid] = 36; } if(PlaceWhereIsCharacter[playerid] == 2) { SelectedCharacter[playerid] = 0; } } else if(ud < 0) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); if(PlaceWhereIsCharacter[playerid] == 0) { SelectedCharacter[playerid] = 36; } if(PlaceWhereIsCharacter[playerid] == 1) { SelectedCharacter[playerid] = 0; } if(PlaceWhereIsCharacter[playerid] == 2) { SelectedCharacter[playerid] = 18; } } if(keys == KEY_SECONDARY_ATTACK) { TextDrawShowForPlayer(playerid, RegisterLoginTD[playerid][3]); if(strlen(InputedWord[playerid]) <= 15) { if(SelectedCharacter[playerid] == 0) { strcat(InputedWord[playerid], "A"); } else if(SelectedCharacter[playerid] == 1) { strcat(InputedWord[playerid], "B"); } else if(SelectedCharacter[playerid] == 2) { strcat(InputedWord[playerid], "C"); } else if(SelectedCharacter[playerid] == 3) { strcat(InputedWord[playerid], "D"); } else if(SelectedCharacter[playerid] == 4) { strcat(InputedWord[playerid], "E"); } else if(SelectedCharacter[playerid] == 5) { strcat(InputedWord[playerid], "F"); } else if(SelectedCharacter[playerid] == 6) { strcat(InputedWord[playerid], "G"); } else if(SelectedCharacter[playerid] == 7) { strcat(InputedWord[playerid], "H"); } else if(SelectedCharacter[playerid] == 8) { strcat(InputedWord[playerid], "I"); } else if(SelectedCharacter[playerid] == 9) { strcat(InputedWord[playerid], "J"); } else if(SelectedCharacter[playerid] == 10) { strcat(InputedWord[playerid], "K"); } else if(SelectedCharacter[playerid] == 11) { strcat(InputedWord[playerid], "L"); } else if(SelectedCharacter[playerid] == 12) { strcat(InputedWord[playerid], "M"); } else if(SelectedCharacter[playerid] == 13) { strcat(InputedWord[playerid], "N"); } else if(SelectedCharacter[playerid] == 14) { strcat(InputedWord[playerid], "O"); } else if(SelectedCharacter[playerid] == 15) { strcat(InputedWord[playerid], "P"); } else if(SelectedCharacter[playerid] == 16) { strcat(InputedWord[playerid], "R"); } else if(SelectedCharacter[playerid] == 17) { strcat(InputedWord[playerid], "S"); } else if(SelectedCharacter[playerid] == 18) { strcat(InputedWord[playerid], "T"); } else if(SelectedCharacter[playerid] == 19) { strcat(InputedWord[playerid], "U"); } else if(SelectedCharacter[playerid] == 20) { strcat(InputedWord[playerid], "V"); } else if(SelectedCharacter[playerid] == 21) { strcat(InputedWord[playerid], "Z"); } else if(SelectedCharacter[playerid] == 22) { strcat(InputedWord[playerid], "Q"); } else if(SelectedCharacter[playerid] == 23) { strcat(InputedWord[playerid], "W"); } else if(SelectedCharacter[playerid] == 24) { strcat(InputedWord[playerid], "Y"); } else if(SelectedCharacter[playerid] == 25) { strcat(InputedWord[playerid], "X"); } else if(SelectedCharacter[playerid] == 26) { strcat(InputedWord[playerid], "0"); } else if(SelectedCharacter[playerid] == 27) { strcat(InputedWord[playerid], "1"); } else if(SelectedCharacter[playerid] == 28) { strcat(InputedWord[playerid], "2"); } else if(SelectedCharacter[playerid] == 29) { strcat(InputedWord[playerid], "3"); } else if(SelectedCharacter[playerid] == 30) { strcat(InputedWord[playerid], "4"); } else if(SelectedCharacter[playerid] == 31) { strcat(InputedWord[playerid], "5"); } else if(SelectedCharacter[playerid] == 32) { strcat(InputedWord[playerid], "6"); } else if(SelectedCharacter[playerid] == 33) { strcat(InputedWord[playerid], "7"); } else if(SelectedCharacter[playerid] == 34) { strcat(InputedWord[playerid], "8"); } else if(SelectedCharacter[playerid] == 35) { strcat(InputedWord[playerid], "9"); } } if(SelectedCharacter[playerid] == 36) { mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e' AND `Password` = md5('%e')", GetName(playerid), InputedWord[playerid]); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) { if(mysql_fetch_row_format(Query, "|")) { mysql_fetch_field_row(string, "Admin"); PlayerInfo[playerid][pAdmin] = strval(string); mysql_fetch_field_row(string, "Gamemaster"); PlayerInfo[playerid][pGameMaster] = strval(string); mysql_fetch_field_row(string, "Kills"); PlayerInfo[playerid][pKills] = strval(string); mysql_fetch_field_row(string, "Deaths"); PlayerInfo[playerid][pDeaths] = strval(string); for(new td = 0; td <= 5; td++) { TextDrawHideForPlayer(playerid, RegisterLoginTD[playerid][td]); TextDrawDestroy(RegisterLoginTD[playerid][td]); } for(new td2 = 0; td2 <= 6; td2++) { TextDrawHideForPlayer(playerid, RegisterLoginTD2[td2]); } rBit1_Set(PlayerLogged, playerid, 1); TogglePlayerSpectating(playerid, 0); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); format(InputedWord[playerid], 25, "\0"); SpawnPlayer(playerid); } } else { SetPVarInt(playerid, "WrongPassword", GetPVarInt(playerid, "WrongPassword") + 1); TextDrawShowForPlayer(playerid, RegisterLoginTD[playerid][4]); format(string, sizeof(string), "Wrong typed password (%d)", GetPVarInt(playerid, "WrongPassword")); strdel(InputedWord[playerid], 0, 15); format(InputedWord[playerid], 25, "\0"); TextDrawSetString(RegisterLoginTD[playerid][4], string); SelectedCharacter[playerid] = 0; mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); if(GetPVarInt(playerid, "WrongPassword") == 3) { for(new chat = 0; chat <= 30; chat++) { SendClientMessage(playerid, -1, ""); } mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); SelectedCharacter[playerid] = 0; strdel(InputedWord[playerid], 0, 15); format(InputedWord[playerid], 25, "\0"); TextDrawSetString(RegisterLoginTD[playerid][3], InputedWord[playerid]); SendClientMessage(playerid, COLOR_KRED, "You typed 3 times wrong password!"); Kick(playerid); } } mysql_free_result(); } else if(SelectedCharacter[playerid] == 37) { strdel(InputedWord[playerid], (strlen(InputedWord[playerid]) - 1), strlen(InputedWord[playerid])); } TextDrawSetString(RegisterLoginTD[playerid][3], InputedWord[playerid]); } return 1; } timer CheckPlayerRegisterKeys[200](playerid) { new keys, ud, lr; GetPlayerKeys(playerid, keys, ud, lr); if(lr > 0) { SelectedCharacter[playerid] ++; TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); } else if(lr < 0) { SelectedCharacter[playerid] --; TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); } if(SelectedCharacter[playerid] == 0) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "~b~~h~A ~w~B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 1) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A ~b~~h~B ~w~C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 2) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B ~b~~h~C ~w~D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 3) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C ~b~~h~D ~w~E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 4) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D ~b~~h~E ~w~F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 5) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E ~b~~h~F ~w~G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 6) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F ~b~~h~G ~w~H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 7) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G ~b~~h~H ~w~I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 8) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H ~b~~h~I ~w~J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 9) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I ~b~~h~J ~w~K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 10) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J ~b~~h~K ~w~L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 11) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K ~b~~h~L ~w~M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 12) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L ~b~~h~M ~w~N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 13) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M ~b~~h~N ~w~O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 14) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N ~b~~h~O ~w~P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 15) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O ~b~~h~P ~w~R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 16) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P ~b~~h~R ~w~S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 17) { PlaceWhereIsCharacter[playerid] = 0; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R ~b~~h~S~n~~w~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 18) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~~b~~h~T ~w~U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 19) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T ~b~~h~U ~w~V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 20) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U ~b~~h~V ~w~Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 21) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V ~b~~h~Z ~w~Q W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 22) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z ~b~~h~Q ~w~W Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 23) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q ~b~~h~W ~w~Y X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 24) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W ~b~~h~Y ~w~X 0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 25) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y ~b~~h~X ~w~0 1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 26) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X ~b~~h~0 ~w~1 2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 27) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 ~b~~h~1 ~w~2 3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 28) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 ~b~~h~2 ~w~3 4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 29) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 ~b~~h~3 ~w~4 5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 30) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 ~b~~h~4 ~w~5 6 7 8 9"); } else if(SelectedCharacter[playerid] == 31) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 ~b~~h~5 ~w~6 7 8 9"); } else if(SelectedCharacter[playerid] == 32) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 ~b~~h~6 ~w~7 8 9"); } else if(SelectedCharacter[playerid] == 33) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 ~b~~h~7 ~w~8 9"); } else if(SelectedCharacter[playerid] == 34) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 ~b~~h~8 ~w~9"); } else if(SelectedCharacter[playerid] == 35) { PlaceWhereIsCharacter[playerid] = 1; TextDrawSetString(RegisterLoginTD[playerid][1], "A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 ~b~~h~9"); } else if(SelectedCharacter[playerid] == 36) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~b~~h~LOGIN ~w~DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~b~~h~REGISTER ~w~DELETE"); PlaceWhereIsCharacter[playerid] = 2; } else if(SelectedCharacter[playerid] == 37) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN ~b~~h~DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER ~b~~h~DELETE"); PlaceWhereIsCharacter[playerid] = 2; } else if(SelectedCharacter[playerid] == 38) SelectedCharacter[playerid] = 0; else if(SelectedCharacter[playerid] == -1) SelectedCharacter[playerid] = 37; if(ud > 0) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); if(PlaceWhereIsCharacter[playerid] == 0) { SelectedCharacter[playerid] = 18; } if(PlaceWhereIsCharacter[playerid] == 1) { SelectedCharacter[playerid] = 36; } if(PlaceWhereIsCharacter[playerid] == 2) { SelectedCharacter[playerid] = 0; } } else if(ud < 0) { TextDrawSetString(RegisterLoginTD[playerid][1], "~w~A B C D E F G H I J K L M N O P R S~n~T U V Z Q W Y X 0 1 2 3 4 5 6 7 8 9"); mysql_format(1, Query, "SELECT * FROM `test_table` WHERE `Name` = '%e'", GetName(playerid)); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() == 1) TextDrawSetString(RegisterLoginTD[playerid][2], "~w~LOGIN DELETE"); else TextDrawSetString(RegisterLoginTD[playerid][2], "~w~REGISTER DELETE"); if(PlaceWhereIsCharacter[playerid] == 0) { SelectedCharacter[playerid] = 36; } if(PlaceWhereIsCharacter[playerid] == 1) { SelectedCharacter[playerid] = 0; } if(PlaceWhereIsCharacter[playerid] == 2) { SelectedCharacter[playerid] = 18; } } if(keys == KEY_SECONDARY_ATTACK) { TextDrawShowForPlayer(playerid, RegisterLoginTD[playerid][3]); if(strlen(InputedWord[playerid]) <= 15) { if(SelectedCharacter[playerid] == 0) { strcat(InputedWord[playerid], "A"); } else if(SelectedCharacter[playerid] == 1) { strcat(InputedWord[playerid], "B"); } else if(SelectedCharacter[playerid] == 2) { strcat(InputedWord[playerid], "C"); } else if(SelectedCharacter[playerid] == 3) { strcat(InputedWord[playerid], "D"); } else if(SelectedCharacter[playerid] == 4) { strcat(InputedWord[playerid], "E"); } else if(SelectedCharacter[playerid] == 5) { strcat(InputedWord[playerid], "F"); } else if(SelectedCharacter[playerid] == 6) { strcat(InputedWord[playerid], "G"); } else if(SelectedCharacter[playerid] == 7) { strcat(InputedWord[playerid], "H"); } else if(SelectedCharacter[playerid] == 8) { strcat(InputedWord[playerid], "I"); } else if(SelectedCharacter[playerid] == 9) { strcat(InputedWord[playerid], "J"); } else if(SelectedCharacter[playerid] == 10) { strcat(InputedWord[playerid], "K"); } else if(SelectedCharacter[playerid] == 11) { strcat(InputedWord[playerid], "L"); } else if(SelectedCharacter[playerid] == 12) { strcat(InputedWord[playerid], "M"); } else if(SelectedCharacter[playerid] == 13) { strcat(InputedWord[playerid], "N"); } else if(SelectedCharacter[playerid] == 14) { strcat(InputedWord[playerid], "O"); } else if(SelectedCharacter[playerid] == 15) { strcat(InputedWord[playerid], "P"); } else if(SelectedCharacter[playerid] == 16) { strcat(InputedWord[playerid], "R"); } else if(SelectedCharacter[playerid] == 17) { strcat(InputedWord[playerid], "S"); } else if(SelectedCharacter[playerid] == 18) { strcat(InputedWord[playerid], "T"); } else if(SelectedCharacter[playerid] == 19) { strcat(InputedWord[playerid], "U"); } else if(SelectedCharacter[playerid] == 20) { strcat(InputedWord[playerid], "V"); } else if(SelectedCharacter[playerid] == 21) { strcat(InputedWord[playerid], "Z"); } else if(SelectedCharacter[playerid] == 22) { strcat(InputedWord[playerid], "Q"); } else if(SelectedCharacter[playerid] == 23) { strcat(InputedWord[playerid], "W"); } else if(SelectedCharacter[playerid] == 24) { strcat(InputedWord[playerid], "Y"); } else if(SelectedCharacter[playerid] == 25) { strcat(InputedWord[playerid], "X"); } else if(SelectedCharacter[playerid] == 26) { strcat(InputedWord[playerid], "0"); } else if(SelectedCharacter[playerid] == 27) { strcat(InputedWord[playerid], "1"); } else if(SelectedCharacter[playerid] == 28) { strcat(InputedWord[playerid], "2"); } else if(SelectedCharacter[playerid] == 29) { strcat(InputedWord[playerid], "3"); } else if(SelectedCharacter[playerid] == 30) { strcat(InputedWord[playerid], "4"); } else if(SelectedCharacter[playerid] == 31) { strcat(InputedWord[playerid], "5"); } else if(SelectedCharacter[playerid] == 32) { strcat(InputedWord[playerid], "6"); } else if(SelectedCharacter[playerid] == 33) { strcat(InputedWord[playerid], "7"); } else if(SelectedCharacter[playerid] == 34) { strcat(InputedWord[playerid], "8"); } else if(SelectedCharacter[playerid] == 35) { strcat(InputedWord[playerid], "9"); } } else SendClientMessage(playerid, COLOR_KRED, "Lenght of password must be beetwen 8 & 15 characters!"); if(SelectedCharacter[playerid] == 36) { if(strlen(InputedWord[playerid]) < 8 || strlen(InputedWord[playerid]) > 15) return SendClientMessage(playerid, COLOR_KRED, "Lenght of password must be beetwen 8 & 15 characters!"); mysql_format(1, Query, "INSERT INTO `test_table` (`Name`, `Password`, `Admin`, `Gamemaster`, `Kills`, `Deaths`) VALUES ('%e', md5('%e'), 0, 0, 0, 0)", GetName(playerid), InputedWord[playerid]); mysql_query(Query); for(new td = 0; td <= 5; td++) { TextDrawHideForPlayer(playerid, RegisterLoginTD[playerid][td]); TextDrawDestroy(RegisterLoginTD[playerid][td]); } for(new td2 = 0; td2 <= 6; td2++) { TextDrawHideForPlayer(playerid, RegisterLoginTD2[td2]); } rBit1_Set(PlayerLogged, playerid, 1); TogglePlayerSpectating(playerid, 0); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); format(InputedWord[playerid], 25, "\0"); SpawnPlayer(playerid); } else if(SelectedCharacter[playerid] == 37) { strdel(InputedWord[playerid], (strlen(InputedWord[playerid]) - 1), strlen(InputedWord[playerid])); } TextDrawSetString(RegisterLoginTD[playerid][3], InputedWord[playerid]); } return 1; } stock GetName(playerid) { new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); return PlayerName; }
You don't need y_ini there. The error is because string is already defined as a global variable in both the includes.
|
C:\Users\Brandon\Desktop\S32_Register&Login.pwn(16) : error 001: expected token: "-identifier-", but found "(" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(143) : error 017: undefined symbol "defer" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(143) : error 017: undefined symbol "RemoveClassSelection" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(144) : error 017: undefined symbol "repeat" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(144) : error 017: undefined symbol "LoadingScreenTimer" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(210) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(216) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(220) : error 021: symbol already defined: "format" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(223) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(227) : error 021: symbol already defined: "format" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(230) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(232) : error 021: symbol already defined: "TextDrawHideForPlayer" C:\Users\Brandon\Desktop\S32_Register&Login.pwn(234) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(234) : error 010: invalid function or declaration C:\Users\Brandon\Desktop\S32_Register&Login.pwn(234 -- 238) : error 010: invalid function or declaration
#include <rBits>