SA-MP Forums Archive
Player Name's Messing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player Name's Messing (/showthread.php?tid=624266)



Player Name's Messing - Lumixa - 13.12.2016

got it work thx, iLearner

please delete thread


Re: Player Name's Messing - Eoussama - 13.12.2016

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



Re: Player Name's Messing - Lumixa - 13.12.2016

solved.


Re: Player Name's Messing - iLearner - 13.12.2016

show us your new code.


Re: Player Name's Messing - Lumixa - 13.12.2016

solved


Re: Player Name's Messing - iLearner - 13.12.2016

Try defining the playername string inside the cmd.


Re: Player Name's Messing - Lumixa - 13.12.2016

solved


Re: Player Name's Messing - iLearner - 13.12.2016

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;




Re: Player Name's Messing - Lumixa - 13.12.2016

thank you worked now


Re: Player Name's Messing - GoldenLion - 13.12.2016

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.