SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=601555)



Help - BlackEvils - 22.02.2016

if(dialogid == DIALOG_MYCAR)
{
if(response)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][PrivateCar] == 0) return SendClientMessage(playerid,COLORE_ROSSO,"ERROR:You don't have any private car.");
if(PlayerInfo[playerid][PrivateCar] == 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "BlackEvil$_", true))
{
new Float, Float:y, Float:z, Float:Angle;
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(PrivateVehicleBlackEvilS, x, y, z);
GetPlayerFacingAngle(playerid, Angle);
SetVehicleZAngle(PrivateVehicleBlackEvilS, Angle);
}
else if(strcmp(name, "Ohad", true))
{
SendClientMessage(playerid,COLORE_ROSSO,"aaaaaaaaa aaaaaaaaaaa");
}
}
}
if(listitem == 1)
{
GameTextForPlayer(playerid, "~r~ERROR:try again later!" , 4000, 3);
}
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}

Whats wrong? no errors/warns


Re: Help - MicroKyrr - 22.02.2016

Use [code and [/code or PHP


Re: Help - BlackEvils - 22.02.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
Use [code and [/code or PHP
What?