Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4199 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

SVEIKI

Karts nuo karto pamatau klausimų kaip sukurti mašinų nuomą. Tai yra labai lengva, tiesiog sudeliokite kur parašiau. Sekmės.

public OnPlayerStateChange(playerid, newstate, oldstate)

if(model == masinosid (sa-mp.com)
 {
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_MSGBOX,"Masinu nuoma:","{347C17}Ar norite isinuomoti masina ?\r\n 100 LT !","Taip","Ne");
 return 1;
 } 

public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])

 if(dialogid == 2222) //Jei dialogid bus lygus 262
 {
if(!response) //Jei paspaude mygtuka ne
{
SendClientMessage(playerid, YELLOW, "Geros dienos !");
RemovePlayerFromVehicle(playerid);
 }
if(response) //Jei paspaude mygtuka "Taip"
{
 if(GetPlayerMoneyA(playerid) < 100)
 {
 SendClientMessage(playerid,BLUE,"Masinos Nuoma : Norint issinuomoti reik turet 100LT.");
 RemovePlayerFromVehicle(playerid);
 return 1;
}

 GivePlayerMoneyA(playerid,-100);
 SendClientMessage(playerid,GREEN,"Masinos nuoma : Malonaus pasivazinejimo!");
}
return 1;
} 

Netestavau, parašiau per kelias minutes jei neveikia sakykit, pataisysiu.

Patiko - +REP

  • Teigiamai 7

 

  • Parašė po 1 mėnesio...

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(143) : error 017: undefined symbol "model"

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(148) : error 010: invalid function or declaration

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(267) : error 017: undefined symbol "YELLOW"

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(272) : error 017: undefined symbol "GetPlayerMoneyA"

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(274) : error 017: undefined symbol "BLUE"

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(279) : error 017: undefined symbol "GivePlayerMoneyA"

C:\DOCUME~1\Karla\LOCALS~1\Temp\Rar$DI34.125\RMG.pwn(280) : error 017: undefined symbol "GREEN"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

va erroras

SVEIKI

Karts nuo karto pamatau klausimų kaip sukurti mašinų nuomą. Tai yra labai lengva, tiesiog sudeliokite kur parašiau. Sekmės.

public OnPlayerStateChange(playerid, newstate, oldstate)

if(model == masinosid (sa-mp.com)
 {
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_MSGBOX,"Masinu nuoma:","{347C17}Ar norite isinuomoti masina ?\r\n 100 LT !","Taip","Ne");
 return 1;
 } 

public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])

 if(dialogid == 2222) //Jei dialogid bus lygus 262
 {
if(!response) //Jei paspaude mygtuka ne
{
SendClientMessage(playerid, YELLOW, "Geros dienos !");
RemovePlayerFromVehicle(playerid);
 }
if(response) //Jei paspaude mygtuka "Taip"
{
 if(GetPlayerMoneyA(playerid) < 100)
 {
 SendClientMessage(playerid,BLUE,"Masinos Nuoma : Norint issinuomoti reik turet 100LT.");
 RemovePlayerFromVehicle(playerid);
 return 1;
}

 GivePlayerMoneyA(playerid,-100);
 SendClientMessage(playerid,GREEN,"Masinos nuoma : Malonaus pasivazinejimo!");
}
return 1;
} 

Netestavau, parašiau per kelias minutes jei neveikia sakykit, pataisysiu.

Patiko - +REP

Saunuolis :) Kas ten tu erroru nemokat susitvarkyt geriau net nekurkit serverio. nes kas is jusu bus ...

data/menu.txt(82) : error 017: undefined symbol "GetPlayerMoneyA"
data/menu.txt(90) : error 017: undefined symbol "GivePlayerMoneyA"
data/pickupfix.txt(47) : error 004: function "OnPlayerPickUpPickup" is not implemented
data/pickupfix.txt(48) : error 004: function "OnPlayerPickUpPickup" is not implemented
data/pickupfix.txt(49) : error 004: function "OnPlayerPickUpPickup" is not implemented
data/lobis.txt(149) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(91) : error 017: undefined symbol "InvalidNickKick"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(92) : error 004: function "Clear" is not implemented
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(123) : error 004: function "SavePlayerData" is not implemented
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(152) : error 004: function "LoadPlayerData" is not implemented
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(262) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(267) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(269) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(401) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(413) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(414) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(435) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(441) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(475) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(486) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(500) : error 004: function "SavePlayerData" is not implemented
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(534) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(541) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(572) : error 017: undefined symbol "GetPlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(586) : error 017: undefined symbol "GivePlayerMoneyA"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(604) : error 017: undefined symbol "GivePlayerMoneyA"
Compilation aborted.Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.

Nu kaip ta idejau va kas gavos stai eilutes

  public OnPlayerStateChange(playerid, newstate, oldstate)
  {
  if( newstate == PLAYER_STATE_DRIVER )
  {
  if(model=462)
	  {
  ShowPlayerDialog(playerid,2222,DIALOG_STYLE_MSGBOX,"Masinu nuoma:","{347C17}Ar norite isinuomoti masina ?\r\n 100 LT !","Taip","Ne");
	  return 1;
	  }

C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5114) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5115) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : error 017: undefined symbol "model"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

6 Errors.

C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5114) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5115) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Administrator\Desktop\GRP 6.0 Los Santos Remake\gamemodes\GRPLT.pwn(5118) : error 017: undefined symbol "GetVehilceModel"
Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

3 Errors.

:D

  • Parašė po 4 mėnesių...

C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(206) : error 017: undefined symbol "model"
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(212) : warning 217: loose indentation
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(212) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(212) : error 004: function "S@@_OnPlayerExitVehicle" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(218) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(218) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(218) : error 004: function "S@@_OnPlayerEnterCheckpoint" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(223) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(223) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(223) : error 004: function "S@@_OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(228) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(228) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(228) : error 004: function "S@@_OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(233) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(233) : error 004: function "S@@_OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(238) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(238) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(238) : error 004: function "S@@_OnRconCommand" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(243) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(243) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(243) : error 004: function "S@@_OnPlayerRequestSpawn" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(248) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(248) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(248) : error 004: function "S@@_OnObjectMoved" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(253) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(253) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(253) : error 004: function "S@@_OnPlayerObjectMoved" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(258) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(258) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(258) : error 004: function "S@@_OnPlayerPickUpPickup" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(264) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(264) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(264) : error 004: function "S@@_OnVehicleMod" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(269) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(269) : error 029: invalid expression, assumed zero
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(269) : error 004: function "S@@_OnVehiclePaintjob" is not implemented
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(274) : warning 225: unreachable code
C:\Users\Aivariokas48\Desktop\Fort carson\gamemodes\fortcarson.pwn(274) : error 029: invalid expression, assumed zero
Compilation aborted.Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.

Cia vien kai idejau OnPlayerStateChange eilute

What you must understand about me is that I’m a deeply unhappy person.


 

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4199 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Svečias
Ši tema yra užrakinta.
  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai



×
×
  • Sukurti naują...