Szerző Téma: playerid undefined smybol  (Megtekintve 1403 alkalommal)

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Dátum: 2012. Március 24. - 15:57:46 »
0
RemoveBuildingForPlayer(playerid, 13029, 93.4063, -173.8281, 1.9688, 0.25);
ebbõl a playerid-t undefine symbolnak veszi vki help ?

playerid undefined smybol
« Válasz #1 Dátum: 2012. Március 24. - 15:58:52 »
0
Ragd ki melyik függvény alatt van az.

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Válasz #2 Dátum: 2012. Március 24. - 16:00:28 »
0
public OnGameModeInit()
és itt    print(\"   Varos betöltése...\\r\\n\"); alatt

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
playerid undefined smybol
« Válasz #3 Dátum: 2012. Március 24. - 16:02:06 »
0
Írj hozzá az argumentumokhoz  \'playerid\' -t! Próbáld úgy!

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Válasz #4 Dátum: 2012. Március 24. - 16:03:55 »
0
Okk
« Utoljára szerkesztve: 2012. Március 24. - 16:07:04 írta #Nexus# »

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
playerid undefined smybol
« Válasz #5 Dátum: 2012. Március 24. - 16:05:56 »
0
public OnGameModeInit(playerid)

 Így próbáld! Ami a () között van, az az argumentum.

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Válasz #6 Dátum: 2012. Március 24. - 16:09:06 »
0
(631) : error 025: function heading differs from prototype
public OnGameModeInit(playerid)

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
playerid undefined smybol
« Válasz #7 Dátum: 2012. Március 24. - 16:10:50 »
0
Fúh, hát most nagyon nemtudok mást. :hmmm:

playerid undefined smybol
« Válasz #8 Dátum: 2012. Március 24. - 16:11:35 »
0
[pawn]public OnPlayerConnect(playerid)
{
return 1;
}[/pawn]
én ide szoktam rakni  ;D

playerid undefined smybol
« Válasz #9 Dátum: 2012. Március 24. - 16:12:27 »
0
a playerid függvénynek mennie kell az OnGameModeInit() alatt!

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Válasz #10 Dátum: 2012. Március 24. - 16:16:15 »
0
Itt igazából a város betöltése miatt kell mert így betölti a mapot és utánna a kocsikat és így nem esik össze vissza a kocsi!

playerid undefined smybol
« Válasz #11 Dátum: 2012. Március 24. - 16:16:43 »
0
Idézetet írta: Szabyxxx date=1332601132\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18995\" data-ipsquote-contentclass=\"forums_Topic
Ragd ki melyik függvény alatt van az.
 
Nem függvény,hanem callback.
 
a playerid függvénynek mennie kell az OnGameModeInit() alatt![/quote]
Nem függvény,hanem paraméter.


OnPlayerConnect-hez rakd,ne GameModeinit-hez,mivel annak nincs playerid argumentuma.

Nem elérhető #Nexus#

  • 1374
    • Profil megtekintése
playerid undefined smybol
« Válasz #12 Dátum: 2012. Március 24. - 16:18:26 »
0
kk ty

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal