Jump to content

[REZOLVAT] Problema bizz gamemode burned


Flow
 Share

Recommended Posts

Username: Flow
Problema întălnită: nu ma lasa sa pun mai mult de 30 de bizz-uri pe server
Detalii despre problemă: nu gasesc unde sa modific limita
Ce ai încercat să faci înainte să postezi?: sa adaug un bizz din baza de date, ultimul fiind bizz-ul cu id 29 si am adaugat unul cu id 30
Cod sursă (recomandat pastebin.com) : LoadBizz  https://pastebin.com/eCLzh1n0
Alte detalii: eroare https://pastebin.com/8Y7m8cig

#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

baga tu un define cu MAX_BIZZ = 60, apoi, in loc de while(mysql_retrieve_row()) pune while(business <= MAX_BIZZ) si asta a fost.

 

sau pur si simplu, while(business <= 60)

Edited by Gabi23
Link to comment
Share on other sites

Acum 45 minute, Flint a spus:

Cauta: new BizzInfo 
Si mareste limita pe care o ai tu definita..Sau daca nu gasesti asta cauta MAX_BIZ / MAX_BUSINESS sau cum ai e definit la tine in gm..

Multumesc, am rezolvat!

#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...