System bug house - 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: System bug house (
/showthread.php?tid=350766)
System bug house -
Esmaelo - 13.06.2012
Hello I create a system for my house GameMode, but I have a problem.
When I placed the order / enter the game it nothing happens.
Hold Pastebin :
http://pastebin.com/wbACpTtf
Thank you in advance. Mayou
Re: System bug house -
Yuryfury - 13.06.2012
You need to add InfosJoueur[playerid][DansMaison] = -1; under OnPlayerSpawn.
The default value for any variable is 0. The way you have it now, when the player connects, InfosJoueur[playerid][DansMaison] is equal to 0 and not -1.
Re : System bug house -
Esmaelo - 14.06.2012
It's already put in the gm I put the system in the house pastebin
Re: System bug house -
Faisal_khan - 14.06.2012
I did not opened your gm but as Yuryfury said...
pawn Код:
public OnPlayerSpawn(playerid)
{
InfosJoueur[playerid][DansMaison] = -1;
return 1;
}
Add this in your script.
Hope it works
Re : System bug house -
Esmaelo - 14.06.2012
it does not even work as