GTA Közösség - A magyar GTA fórum
		San Andreas Multiplayer (SA-MP / Open.mp) => SA-MP / Open.mp: Szerverfejlesztés => Segítségkérés => A témát indította: Smookey - 2017. július 07. - 12:35:59
		
			
			- 
				Sziasztok.Próbáltam csinálni egy bankrablás scriptet.
 
CMD:bankrob(playerid, params[])
{
 
    if(robpossible == 1
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2309.1899,-8.4444,26.7422)) //Ide az alap bank koordinátáit írtam
        {
            robpossible = 0;
            SetTimer(\"waittimer\", 60000, false);
            SetTimer(\"robtimer\", 60000, false);
            format(str, sizeof(str), \"[RÁDIÓ] Diszpécser: A bank jelenleg rablás alatt! Mindenki azonnal induljon a bankhoz!\");
            SendFactionMessage(Character[playerid][Faction], COLOR_GRAY, str);
            SendClientMessage(playerid, COLOR_WHITE, \"ÜGYINTÉZŐ: Egy perc, azonnal adom a kódot!\");
            SendClientMessage(playerid, COLOR_WHITE, \"(( Kirabolod a bankot! Maradj itt egy percig, hogy sikerüljön. Rendőrség értesítve. ))\");
         }
    } else {
        SendClientMessage(playerid, COLOR_WHITE, \"(( Nem tudod kirabolni a bankot jelenleg! ))\");
    }
    return 1;
}
 
Valaki kitudná javitani nekem?Kiemeltem hogy mit ad errornak a pawno
			 
			
			- 
				.
			
 
			
			- 
				if(robpossible ==1 *)* Nem \"zártad\" le.. 
			
 
			
			- 
				Lezártam.Az a hiba megszünt.
 
UI:
 
J:\\Bandi mappa\\Invincible-Roleplay\\Small-County-RP-Release\\Small-County-RP-Release\\gamemodes\\Complex.pwn(1261) : error 017: undefined symbol \"str\"
J:\\Bandi mappa\\Invincible-Roleplay\\Small-County-RP-Release\\Small-County-RP-Release\\gamemodes\\Complex.pwn(1261) : error 017: undefined symbol \"str\"
J:\\Bandi mappa\\Invincible-Roleplay\\Small-County-RP-Release\\Small-County-RP-Release\\gamemodes\\Complex.pwn(1261) : error 029: invalid expression, assumed zero
J:\\Bandi mappa\\Invincible-Roleplay\\Small-County-RP-Release\\Small-County-RP-Release\\gamemodes\\Complex.pwn(1261) : fatal error 107: too many error messages on one line
 
Ez a 4 error előbukkant
			 
			
			- 
				Amit formázól \"str\" nincs létrehozva... new str[1024]; a format fölé
 
 
			 
			
			- 
				Nem lesz az egy kicsit sok? :D
			
 
			
			- 
				Köszi a válaszokat.Megoldottam.