Player Name's Messing
#1

got it work thx, iLearner

please delete thread
Reply
#2

Add This bellow CMD:engine(playerid, params[]){
PHP код:
GetPlayerName(playeridplayernamesizeof(playername)); 
Reply
#3

solved.
Reply
#4

show us your new code.
Reply
#5

solved
Reply
#6

Try defining the playername string inside the cmd.
Reply
#7

solved
Reply
#8

PHP код:
CMD:engine(playeridparams[])
{
new 
carid GetPlayerVehicleID(playerid);
new 
string[100], pname[24];
GetPlayerName(playeridpnamesizeof(pname));
if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(
Fuel[carid] == 0.0) return SCM(playeridCOLOR_RED"** Tqveni Manqanis Avzi Carielia.");
switch(
EngineState[carid])
{
case 
false:
{
EngineState[carid] = true;
GetVehicleParamsEx(caridenginelightsalarmdoorsbonnetbootobjective);
SetVehicleParamsEx(caridtruelightsalarmdoorsbonnetbootobjective);
format(stringsizeof(string), "%s-m(a) Gadaatriala Gasagebi Da Daqoqa Manqana."pname);
SetPlayerChatBubble(playeridstringCOLOR_PURPLE20.05*1000);
ProxDetector(20.0playeridstringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
}
case 
true:
{
EngineState[carid] = false;
GetVehicleParamsEx(caridenginelightsalarmdoorsbonnetbootobjective);
SetVehicleParamsEx(caridfalselightsalarmdoorsbonnetbootobjective);
format(stringsizeof(string), "%s-m(a) Gadaatriala Gasagebi Da Chaaqro Manqana."pname);
SetPlayerChatBubble(playeridstringCOLOR_PURPLE20.05*1000);
ProxDetector(20.0playeridstringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
}
}
}
return 
1;

Reply
#9

thank you worked now
Reply
#10

You don't need to change every single of your post to "solved". Someone else may have the same problem in the future, but there will be no use of this thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)