[HELP]My /v spawn1 not working - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]My /v spawn1 not working (
/showthread.php?tid=111609)
[HELP]My /v spawn1 not working -
Lilcuete - 02.12.2009
when i do /v spawn1 and i go ingame i do /v spawn1 nothing happens it is suposed to be spawn ur vehicle but nothing happens heres my command
Код:
else if(strcmp(x_nr,"spawn1",true) == 0)
{
new carid;
new getcarid;
if(CarInfo[carid][cOwned] == 1)
{
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
return 1;
}
if(getcarid == carid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
format(string, sizeof(string), "~n~ You have spawned your vehicle in this location. ~n~");
GameTextForPlayer(playerid, "You have spawned your vehicle in this location. It will respawn here.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
Re: [HELP]My /v spawn1 not working -
Lilcuete - 02.12.2009
anyone?
Re: [HELP]My /v spawn1 not working -
Grim_ - 02.12.2009
If this is a godfather question, ask in the godfather thread.
Also, it may be that you don't assign "carid" to a value, and are using it to check if the player owns that specific car. (which in this case would be "0", since you never set it to a different value)
Re: [HELP]My /v spawn1 not working -
Lilcuete - 03.12.2009
Bump
Re: [HELP]My /v spawn1 not working -
Grim_ - 03.12.2009
Quote:
Originally Posted by Swift_
If this is a godfather question, ask in the godfather thread.
Also, it may be that you don't assign "carid" to a value, and are using it to check if the player owns that specific car. (which in this case would be "0", since you never set it to a different value)
|