plS help [error/bug]
#1

i cannot go to class selection after register or login.it show the spawn button but the button cannot spawn if i click.

PHP код:
public OnPlayerRequestClass(PIDclassid)
{
    if (!
GetPVarInt(playerid"LoggedIn"))
    {    
        if(
IsPlayerNPC(PID)) return 1;
        
PlayerTextDrawShow(PID,Textdraw0);
        
PlayerTextDrawShow(PID,Textdraw1);
        
PlayerTextDrawShow(PID,Textdraw2);
        
PlayerTextDrawShow(PID,Textdraw3);
        if(
gPlayerHasCitySelected[PID]) {
            
ClassSel_SetupCharSelection(PID);
            if(
gPlayerCitySelection[PID] == CITY_LOS_SANTOS)
            {
                new 
string[250];
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID));
                
PlayerTextDrawSetString(PID,Textdraw3,string);
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100);
            }
            else if(
gPlayerCitySelection[PID] == CITY_LAS_VENTURAS)
            {
                new 
string[250];
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID));
                
PlayerTextDrawSetString(PID,Textdraw3,string);
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100);
            }
            else if(
gPlayerCitySelection[PID] == CITY_SAN_FIERRO)
            {
                new 
string[250];
                
format(string,sizeof(string),"City: ~y~San Fierro~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID));
                
PlayerTextDrawSetString(PID,Textdraw3,string);
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100);
            }
            return 
1;
        } else {
            if(
GetPlayerState(PID) != PLAYER_STATE_SPECTATING) {
                
TogglePlayerSpectating(PID,1);
                
gPlayerCitySelection[PID] = -1;
            }
          }
    }
    return 
0;

PHP код:
Dialog:LOGIN(playeridresponselistiteminputtext[])
{
    if (!
response)
    {
        
Dialog_Show(playeridOPTIONSDIALOG_STYLE_LIST"Account Options...""Forgot password\nForgot username\nExit to desktop""Select""Back");
        return 
1;
    }
    new 
string[256];
    new 
hash[64];
    
SHA256_PassHash(inputtextUser[playerid][USER_SALT], hashsizeof(hash));
    if (
strcmp(hashUser[playerid][USER_PASSWORD]))
    {
        if (++
iLoginAttempts[playerid] == MAX_LOGIN_ATTEMPTS)
        {
            new 
lock_timestamp gettime() + (MAX_ACCOUNT_LOCKTIME 60);
            new 
ip[18];
            
GetPlayerIp(playeridip18);
            
format(stringsizeof(string), "INSERT INTO `temp_blocked_users` VALUES('%s', %i, %i)"iplock_timestampUser[playerid][USER_ID]);
            
db_query(dbstring);
            
SendClientMessage(playeridCOLOR_RED"Sorry! The account has been temporarily locked on your IP. due to "#MAX_LOGIN_ATTEMPTS"/"#MAX_LOGIN_ATTEMPTS" failed login attempts.");
            
format(stringsizeof(string), "If you forgot your password/username, click on 'Options' in login window next time (you may retry in %s)."ReturnTimelapse(gettime(), lock_timestamp));
            
SendClientMessage(playeridCOLOR_REDstring);
            return 
Kick(playerid);
        }
        
Dialog_Show(playeridLOGINDIALOG_STYLE_INPUT"Account Login..."white "Insert your secret password to access this account. If you failed in "yellow""#MAX_LOGIN_ATTEMPTS" "white"attempts, account will be locked for "yellow""#MAX_ACCOUNT_LOCKTIME" "white"minutes.", "Continue", "Options");
        
format(stringsizeof(string), "Incorrect password! Your login tries left: %i/"#MAX_LOGIN_ATTEMPTS" attempts.", iLoginAttempts[playerid]);
        
SendClientMessage(playeridCOLOR_REDstring);
        return 
1;
    }
    new 
name[MAX_PLAYER_NAME],
        
ip[18];
    
GetPlayerName(playeridnameMAX_PLAYER_NAME);
    
GetPlayerIp(playeridip18);
    
format(stringsizeof(string), "UPDATE `users` SET `lastlogin_timestamp` = %i, `ip` = '%s', `longip` = %i WHERE `id` = %i"gettime(), ipIpToLong(ip), User[playerid][USER_ID]);
    
db_query(dbstring);
    
format(stringsizeof(string), "Successfully logged in! Welcome back to our server %s, we hope you enjoy your stay. [Last login: %s ago]"nameReturnTimelapse(User[playerid][USER_LASTLOGIN_TIMESTAMP], gettime()));
    
SendClientMessage(playeridCOLOR_GREENstring);
    
PlayerPlaySound(playerid10570.00.00.0);
    
SetPVarInt(playerid"LoggedIn"1);
    
OnPlayerRequestClass(playerid0);
    return 
1;
}
Dialog:REGISTER(playeridresponselistiteminputtext[])
{
    if (!
response)
    {
        
Dialog_Show(playeridOPTIONSDIALOG_STYLE_LIST"Account Options...""Forgot password\nForgot username\nExit to desktop""Select""Back");
        return 
1;
    }
    if (!(
MIN_PASSWORD_LENGTH <= strlen(inputtext) <= MAX_PASSWORD_LENGTH))
    {
        
Dialog_Show(playeridREGISTERDIALOG_STYLE_PASSWORD"Account Registeration... [Step: 1/3]"white "Welcome to our server. We will take you through "green"3 simple steps "white"to register your account with a backup option in case you forgot your password!\nPlease enter a password, "red"case sensitivity"white" is on.""Continue""Options");
        
SendClientMessage(playeridCOLOR_RED"Invalid password length, must be between "#MIN_PASSWORD_LENGTH" - "#MAX_PASSWORD_LENGTH" characters.");
        
return 1;
    }
    
#if defined SECURE_PASSWORD_ONLY
        
new bool:contain_number,
            
bool:contain_highercase,
            
bool:contain_lowercase;
        for (new 
istrlen(inputtext); ji++)
        {
            switch (
inputtext[i])
            {
                case 
'0'..'9':
                    
contain_number true;
                case 
'A'..'Z':
                    
contain_highercase true;
                case 
'a'..'z':
                    
contain_lowercase true;
            }
            if (
contain_number && contain_highercase && contain_lowercase)
                break;
        }
        if (!
contain_number || !contain_highercase || !contain_lowercase)
        {
            
Dialog_Show(playeridREGISTERDIALOG_STYLE_INPUT"Account Registeration... [Step: 1/3]"white "Welcome to our server. We will take you through "white"3 simple steps "white"to register your account with a backup option in case you forgot your password!\nPlease enter a password, "red"case sensitivity"white" is on.""Continue""Options");
            
SendClientMessage(playeridCOLOR_RED"Password must contain atleast a Highercase, a Lowercase and a Number.");
            return 
1;
        }
    
#endif
    
for (new i64i++)
    {
        
User[playerid][USER_SALT][i] = (random('z' 'A') + 'A');
    }
    
User[playerid][USER_SALT][64] = EOS;
    
SHA256_PassHash(inputtextUser[playerid][USER_SALT], User[playerid][USER_PASSWORD], 64);
    new list[
+ (sizeof(SECURITY_QUESTIONS) * MAX_SECURITY_QUESTION_SIZE)];
    for (new 
isizeof(SECURITY_QUESTIONS); i++)
    {
        
strcat(list, SECURITY_QUESTIONS[i]);
        
strcat(list, "\n");
    }
    
Dialog_Show(playeridSEC_QUESTIONDIALOG_STYLE_LIST"Account Registeration... [Step: 2/3]", list, "Continue""Back");
    
SendClientMessage(playeridCOLOR_WHITE"[Step: 2/3] Select a security question. This will help you retrieve your password in case you forget it any time soon!");
    
PlayerPlaySound(playerid10540.00.00.0);
    return 
1;
}
Dialog:SEC_QUESTION(playeridresponselistiteminputtext[])
{
    if (!
response)
    {
        
Dialog_Show(playeridREGISTERDIALOG_STYLE_PASSWORD"Account Registeration... [Step: 1/3]"white "Welcome to our server. We will take you through "green"3 simple steps "white"to register your account with a backup option in case you forgot your password!\nPlease enter a password, "red"case sensitivity"white" is on.""Continue""Options");
        
SendClientMessage(playeridCOLOR_WHITE"[Step: 1/3] Enter your new account's password.");
        return 
1;
    }
    new 
meow[256];
    
format(User[playerid][USER_SECURITY_QUESTION], MAX_SECURITY_QUESTION_SIZESECURITY_QUESTIONS[listitem]);
    
format(meowsizeof(meow), red"%s\n"white"Insert your answer below in the box. (don't worry about CAPS, answers are NOT case sensitive)."SECURITY_QUESTIONS[listitem]);
    
Dialog_Show(playeridSEC_ANSWERDIALOG_STYLE_INPUT"Account Registeration... [Step: 3/3]"meow"Confirm""Back");
    
SendClientMessage(playeridCOLOR_WHITE"[Step: 3/3] Write the answer to your secuirty question and you'll be done :)");
    
PlayerPlaySound(playerid10540.00.00.0);
    return 
1;
}
Dialog:SEC_ANSWER(playeridresponselistiteminputtext[])
{
    if (!
response)
    {
        new list[
+ (sizeof(SECURITY_QUESTIONS) * MAX_SECURITY_QUESTION_SIZE)];
        for (new 
isizeof(SECURITY_QUESTIONS); i++)
        {
            
strcat(list, SECURITY_QUESTIONS[i]);
            
strcat(list, "\n");
        }
        
Dialog_Show(playeridSEC_QUESTIONDIALOG_STYLE_LIST"Account Registeration... [Step: 2/3]", list, "Continue""Back");
        
SendClientMessage(playeridCOLOR_WHITE"[Step: 2/3] Select a security question. This will help you retrieve your password in case you forget it any time soon!");
        return 
1;
    }
    new 
string[512];
    if (
strlen(inputtext) < MIN_PASSWORD_LENGTH || inputtext[0] == ' ')
    {
        
format(stringsizeof(string), green"%s\n"white"Insert your answer below in the box. (don't worry about CAPS, answers are NOT case sensitive)."SECURITY_QUESTIONS[listitem]);
        
Dialog_Show(playeridSEC_ANSWERDIALOG_STYLE_INPUT"Account Registeration... [Step: 3/3]"string"Confirm""Back");
        
SendClientMessage(playeridCOLOR_RED"Security answer cannot be an less than "#MIN_PASSWORD_LENGTH" characters.");
        
return 1;
    }
    for (new 
istrlen(inputtext); ji++)
    {
        
inputtext[i] = tolower(inputtext[i]);
    }
    
SHA256_PassHash(inputtextUser[playerid][USER_SALT], User[playerid][USER_SECURITY_ANSWER], 64);
    new 
name[MAX_PLAYER_NAME],
        
ip[18];
    
GetPlayerName(playeridnameMAX_PLAYER_NAME);
    
GetPlayerIp(playeridip18);
    
format(stringsizeof(string), "INSERT INTO `users`(`name`, `ip`, `longip`, `password`, `salt`, `sec_question`, `sec_answer`, `register_timestamp`, `lastlogin_timestamp`) VALUES('%s', '%s', %i, '%q', '%q', '%q', '%q', %i, %i)"nameipIpToLong(ip), User[playerid][USER_PASSWORD], User[playerid][USER_SALT], User[playerid][USER_SECURITY_QUESTION], User[playerid][USER_SECURITY_ANSWER], gettime(), gettime());
    
db_query(dbstring);
    
format(stringsizeof(string), "SELECT `id` FROM `users` WHERE `name` = '%q' LIMIT 1"name);
    new 
DBResult:result db_query(dbstring);
    
User[playerid][USER_ID] = db_get_field_int(result0);
    
db_free_result(result);
    
format(stringsizeof(string), "Successfully registered! Welcome to our server %s, we hope you enjoy your stay. [IP: %s]"nameip);
    
GivePlayerMoney(playerid5000);
    
SendClientMessage(playeridCOLOR_GREENstring);
    
PlayerPlaySound(playerid10570.00.00.0);
    
SetPVarInt(playerid"LoggedIn"1);
    return 
1;

PHP код:
public OnPlayerConnect(PID)
{
            new 
str[128];
            new 
PlayerName[MAX_PLAYER_NAME];
            
GetPlayerName(PID,PlayerName,sizeof(PlayerName));
            
format(str,sizeof(str),"%s {F40006}[ID %i] {B7F523} has joined the server from ",PlayerName ,PID);
            
scms(LIGHTORANGE,str);
            
playerCar[PID] = INVALID_VEHICLE_ID;
            
rBit2_Set(CC LELPIDfalse);
            
KillStreak[PID] = 0;
            
DM[PID] = 0;
            
gRoomP[playerid] = 0;
            
            
gPlayerCitySelection[PID] = -1;
            
gPlayerHasCitySelected[PID] = 0;
            
gPlayerLastCitySelectionTick[PID] = GetTickCount();
            
Textdraw0 CreatePlayerTextDraw(PID,14.000000300.000000"~r~C~w~~h~C ~r~B~w~~h~UKIT");
            
PlayerTextDrawBackgroundColor(PID,Textdraw0255);
            
PlayerTextDrawFont(PID,Textdraw03);
            
PlayerTextDrawLetterSize(PID,Textdraw00.7400002.400000);
            
PlayerTextDrawColor(PID,Textdraw0, -1);
            
PlayerTextDrawSetOutline(PID,Textdraw01);
            
PlayerTextDrawSetProportional(PID,Textdraw01);
            
PlayerTextDrawSetSelectable(PID,Textdraw00);
            
Textdraw1 CreatePlayerTextDraw(PID,149.000000315.000000"#MALAYSIA");
            
PlayerTextDrawBackgroundColor(PID,Textdraw1255);
            
PlayerTextDrawFont(PID,Textdraw10);
            
PlayerTextDrawLetterSize(PID,Textdraw10.5500001.700000);
            
PlayerTextDrawColor(PID,Textdraw1, -1);
            
PlayerTextDrawSetOutline(PID,Textdraw11);
            
PlayerTextDrawSetProportional(PID,Textdraw11);
            
PlayerTextDrawSetSelectable(PID,Textdraw10);
            
Textdraw2 CreatePlayerTextDraw(PID,16.000000328.000000"Welcome to GTA: CC LEL server. i hope you will enjoy your stay!~n~~n~Press LMB or RMB to switch cities and Press MMB to selec");
            
PlayerTextDrawBackgroundColor(PID,Textdraw2255);
            
PlayerTextDrawFont(PID,Textdraw21);
            
PlayerTextDrawLetterSize(PID,Textdraw20.1500000.700000);
            
PlayerTextDrawColor(PID,Textdraw2, -1);
            
PlayerTextDrawSetOutline(PID,Textdraw20);
            
PlayerTextDrawSetProportional(PID,Textdraw21);
            
PlayerTextDrawSetShadow(PID,Textdraw21);
            
PlayerTextDrawUseBox(PID,Textdraw21);
            
PlayerTextDrawBoxColor(PID,Textdraw20);
            
PlayerTextDrawTextSize(PID,Textdraw2149.0000000.000000);
            
PlayerTextDrawSetSelectable(PID,Textdraw20);
            
Textdraw3 CreatePlayerTextDraw(PID,16.000000365.000000"City: ~y~Los Santos~n~~w~~h~Skin: ~y~285");
            
PlayerTextDrawBackgroundColor(PID,Textdraw3255);
            
PlayerTextDrawFont(PID,Textdraw31);
            
PlayerTextDrawLetterSize(PID,Textdraw30.2500001.200000);
            
PlayerTextDrawColor(PID,Textdraw3, -1);
            
PlayerTextDrawSetOutline(PID,Textdraw30);
            
PlayerTextDrawSetProportional(PID,Textdraw31);
            
PlayerTextDrawSetShadow(PID,Textdraw31);
            
PlayerTextDrawUseBox(PID,Textdraw31);
            
PlayerTextDrawBoxColor(PID,Textdraw30);
            
PlayerTextDrawTextSize(PID,Textdraw3149.0000000.000000);
            
PlayerTextDrawSetSelectable(PID,Textdraw30);
            
GameTextForPlayer(PID,"~w~Welcome to LEL",6000,4);
              
scm(PID,0x2685B4AA,"{C19D53} Welcome to {B7F523}CC{C4C035}LL");
             
SetTimerEx("OnPlayerJoin"0001false"i"playerid);    
            return 
1;

PHP код:
forward OnPlayerJoin(playerid);
public 
OnPlayerJoin(playerid)
{
            new 
string[150];
            new 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnameMAX_PLAYER_NAME);
            
format(stringsizeof(string), "SELECT * FROM `users` WHERE `name` = '%q' LIMIT 1"name);
            new 
DBResult:result db_query(dbstring);
            if (
db_num_rows(result) == 0)
            {
                
User[playerid][USER_ID] = -1;
                
User[playerid][USER_PASSWORD][0] = EOS;
                
User[playerid][USER_SALT][0] = EOS;
                
User[playerid][USER_KILLS] = 0;
                
User[playerid][USER_DEATHS] = 0;
                
User[playerid][USER_SCORE] = 0;
                
User[playerid][USER_MONEY] = 0;
                
User[playerid][USER_ADMIN] = 0;
                
User[playerid][USER_VIP] = 0;
                
User[playerid][USER_REGISTER_TIMESTAMP] = 0;
                
User[playerid][USER_LASTLOGIN_TIMESTAMP] = 0;
                
User[playerid][USER_SECURITY_QUESTION][0] = EOS;
                
User[playerid][USER_SECURITY_ANSWER][0] = EOS;
                
Dialog_Show(playeridREGISTERDIALOG_STYLE_PASSWORD"Account Registeration... [Step: 1/3]""white" "Welcome to our server. We will take you through "green"3 simple steps "white"to register your account with a backup option in case you forgot your password!\nPlease enter a password, "red"case sensitivity"white" is on.""Continue""Options");
                
SendClientMessage(playeridCOLOR_WHITE"[Step: 1/3] Enter your new account's password.");
            }
            else
            {
                
iLoginAttempts[playerid] = 0;
                
iAnswerAttempts[playerid] = 0;
                
User[playerid][USER_ID] = db_get_field_assoc_int(result"id");
                
format(stringsizeof(string), "SELECT `lock_timestamp` FROM `temp_blocked_users` WHERE `user_id` = %i LIMIT 1"User[playerid][USER_ID]);
                new 
DBResult:lock_result db_query(dbstring);
                if (
db_num_rows(lock_result) == 1)
                {
                    new 
lock_timestamp db_get_field_int(lock_result0);
                    if ((
gettime() - lock_timestamp) < 0)
                    {
                        
SendClientMessage(playeridCOLOR_RED"Sorry! The account is temporarily locked on your IP. due to "#MAX_LOGIN_ATTEMPTS"/"#MAX_LOGIN_ATTEMPTS" failed login attempts.");
                        
format(stringsizeof(string), "You'll be able to try again in %s."ReturnTimelapse(gettime(), lock_timestamp));
                        
SendClientMessage(playeridCOLOR_REDstring);
                        
db_free_result(result);
                        
db_free_result(lock_result);
                        return 
Kick(playerid);
                    }
                    else
                    {
                        new 
ip[18];
                        
GetPlayerIp(playeridip18);
                        
format(stringsizeof(string), "DELETE FROM `temp_blocked_users` WHERE `user_id` = %i AND `ip` = '%s'"User[playerid][USER_ID], ip);
                        
db_query(dbstring);
                    }
                }
                
db_free_result(lock_result);
                
db_get_field_assoc(result"password"User[playerid][USER_PASSWORD], 64);
                
db_get_field_assoc(result"salt"User[playerid][USER_SALT], 64);
                
User[playerid][USER_SALT][64] = EOS;
                
User[playerid][USER_KILLS] = db_get_field_assoc_int(result"kills");
                
User[playerid][USER_DEATHS] = db_get_field_assoc_int(result"deaths");
                
User[playerid][USER_SCORE] = db_get_field_assoc_int(result"score");
                
User[playerid][USER_MONEY] = db_get_field_assoc_int(result"money");
                
User[playerid][USER_ADMIN] = db_get_field_assoc_int(result"adminlevel");
                
User[playerid][USER_VIP] = db_get_field_assoc_int(result"viplevel");
                
User[playerid][USER_REGISTER_TIMESTAMP] = db_get_field_assoc_int(result"register_timestamp");
                
User[playerid][USER_LASTLOGIN_TIMESTAMP] = db_get_field_assoc_int(result"lastlogin_timestamp");
                
db_get_field_assoc(result"sec_question"User[playerid][USER_SECURITY_QUESTION], MAX_SECURITY_QUESTION_SIZE);
                
db_get_field_assoc(result"sec_answer"User[playerid][USER_SECURITY_ANSWER], MAX_PASSWORD_LENGTH 2);
                
Dialog_Show(playeridLOGINDIALOG_STYLE_PASSWORD"Account Login..."white "Insert your secret password to access this account. If you failed in "yellow""#MAX_LOGIN_ATTEMPTS" "white"attempts, account will be locked for "yellow""#MAX_ACCOUNT_LOCKTIME" "white"minutes.", "Continue", "Options");
            
}
            
db_free_result(result);
            return 
1;

PHP код:
public OnPlayerDisconnect(PIDreason)
{
            new 
str[128];
            new 
PlayerName[MAX_PLAYER_NAME];
            
GetPlayerName(PID,PlayerName,sizeof(PlayerName));
            
format(str,sizeof(str),"%s {F40006} [ID %i] {B7F523} has left the server",PlayerName ,PID);
            
scms(YELLOW,str);
            
Delete3DTextLabel(label[PID]);
            
DestroyDynamic3DTextLabel(wanted[PID]);
            
DestroyVehicle(playerCar[PID]);
            
KillStreak[PID] = 0;
            
DM[PID] = 0;
            if (
GetPVarInt(playerid"LoggedIn"))
            {
                new 
string[1024],
                
name[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnameMAX_PLAYER_NAME);
                
format(stringsizeof(string), "UPDATE `users` SET `name` = '%s', `password` = '%q', `salt` = '%q',  `kills` = %i, `deaths` = %i, `score` = %i, `money` = %i, `adminlevel` = %i, `viplevel` = %i WHERE `id` = %i",
                
nameUser[playerid][USER_PASSWORD], User[playerid][USER_SALT], User[playerid][USER_KILLS], User[playerid][USER_DEATHS], GetPlayerScore(playerid), GetPlayerMoney(playerid), User[playerid][USER_ADMIN], User[playerid][USER_VIP], User[playerid][USER_ID]);
                
db_query(dbstring);
            }
            return 
1;



p.s:i use gammix gammode.sorry noob.i dont no where is error or bug in the script.
Reply
#2

PHP код:
public OnPlayerRequestClass(PIDclassid

    if (!
GetPVarInt(playerid"LoggedIn")) 
    {     
        if(
IsPlayerNPC(PID)) return 1
        
PlayerTextDrawShow(PID,Textdraw0); 
        
PlayerTextDrawShow(PID,Textdraw1); 
        
PlayerTextDrawShow(PID,Textdraw2); 
        
PlayerTextDrawShow(PID,Textdraw3); 
        if(
gPlayerHasCitySelected[PID]) { 
            
ClassSel_SetupCharSelection(PID); 
            if(
gPlayerCitySelection[PID] == CITY_LOS_SANTOS
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            else if(
gPlayerCitySelection[PID] == CITY_LAS_VENTURAS
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            else if(
gPlayerCitySelection[PID] == CITY_SAN_FIERRO
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~San Fierro~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            return 
1
        } else { 
            if(
GetPlayerState(PID) != PLAYER_STATE_SPECTATING) { 
                
TogglePlayerSpectating(PID,1); 
                
gPlayerCitySelection[PID] = -1
            } 
          } 
          return 
1;
    } 
    return 
0

Try it like this
Reply
#3

not work
Reply
#4

Any help
Reply
#5

Can you show the full code?
Reply
#6

the full code on the first chat.
Reply
#7

Turn off the spectate mode after registering or login.
PHP код:
TogglePlayerSpectating(playerid0); 
Reply
#8

Wow, impresionant.
Reply
#9

Quote:
Originally Posted by Thomson404
Посмотреть сообщение
Wow, impresionant.
Was that comment relevant to this topic?
Reply
#10

bump anyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)