Jump to content

[REZOLVAT] Warning-uri float


Flow
 Share

Recommended Posts

  • Username:Flow
  • Problemă Ã®ntâlnită: warnings
  • Detalii despre problemă: Pai am schimbat doar acele coordonate la new float si du pa cand am dat compilare, am primit cele 2 erori
  • Ce ai încercat să faci înainte să postezi?: Nimic, nu imi dau seama ce am gresit
  • Cod sursă (recomandat pastebin.com): https://pastebin.com/aHietyU3
  • Alte detalii:

    C:\Users\George\Desktop\p-zone community\gamemodes\Diamond.pwn(2460) : error 008: must be a constant expression; assumed zero

    C:\Users\George\Desktop\p-zone community\gamemodes\Diamond.pwn(2469) : error 001: expected token: "}", but found ";"

  •  
#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

  • Retired

Ai uitat sa inchizi paranteza aici:

 

(inchide paranteza la ala de l-am comentat)

new Float:QuestPositions[][4] = {
    {1500.6455,-1664.5763,14.0469},
    {622.4320,-506.2792,16.3525},
    {211.0797,1811.2903,21.8594},
    {1419.6334,2772.3982,10.8203, // aici
    {2498.6074,-1630.7329,13.4012},
    {705.5250,-1473.9982,5.4688},
    {2344.0215,2448.7480,15.5088},
    {-348.7747,1578.4503,76.3593},
    {1537.8656,794.8870,11.0234},
    {1045.6055,-299.7299,77.3594},
    {2434.5225,1663.1892,15.6056},
    {1764.9906,-1924.0261,13.5674},
    {1632.6754,1848.4852,10.8203}
};
Edited by Sintetick
Link to comment
Share on other sites

Mersi mult! T/C

#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...