Jump to content
  • 0

Gang Spawn


Ph0eniX

Question

Nick: [PhX]Exc1siOn[PhX]

Problema: Nu functioneaza spawn-ul . Trebuie sa specizez ca spawn-ul este setat si totul facut bine :| eu asa cred...

Erori / warnings: -

Lini/script: La OnPlayerSpawn :

SetPlayerPos( playerid, GetGangPosX( GetPlayerGang( playerid ) ), GetGangPosY( GetPlayerGang( playerid ) ), GetGangPosZ( GetPlayerGang( playerid ) ) );
la Stock:
stock GetGangPosX( gang[ ] )
{
	new Query[100], gang_pox[30];
	format(Query, sizeof(Query), "SELECT `gangposx` FROM `gangs` WHERE `gangname` = '%s'", gang);
 	Result = db_query( Database, Query );
	db_get_field_assoc( Result, "gangposx", gang_pox, 30 );
	db_free_result(Result);
	return strval(gang_pox);
}

Ai incercat sa rezolvi singur ?: Da

PS: In DataBase se seteaza pozitia si "gangposx , gangs , gangname" sunt puse bine :) Gang colour , weapons etc functioneaza bine.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.