Jump to content

xxSPEEDYxx

Membru
  • Posts

    1,614
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by xxSPEEDYxx

  1. Nu mai folosit INSERT INTO `Users` ( `name`, `col2`, `col3`, `etc ) VALUES... Foloseste direct INSERT INTO `Users` VALUES... Deci la tine asta ar veni cam asa: format(query, sizeof(query), "INSERT INTO `Users` VALUES ('%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')", DB_Escape(name), DB_Escape(inputtext), pData[playerid][SpawnLocation], pData[playerid][AccountInfo], pData[playerid][Admin], GetPlayerScore(playerid), GetPlayerMoney(playerid), pData[playerid][Sex], pData[playerid][Age]); Asa este mai bine! + cand scrii intr-o data base foloseste si db_free_result db_free_result( db_query( Database, Query ) ); Incearca sa schimbi cu ce ti-am dat si sa vezi daca merge.
  2. A spus ca, crede ca ii prima lui mapa Nice, 4/5
  3. Mda mai bine pe linux, ca 90% din hosturi sunt pe linux:P Whatever, Very Good JOB!
  4. In loc de: dcmd_teamstats(playerid, cmdtext[]) Pune: dcmd_teamstats( playerid, params[ ] ) Pentru erroarea a doua nu ai definit player1. Definestel! new player1;
  5. Folositor pentru cei ce au 2 forumuri( Ceea ce nu pre cred ) ) la server... 4/5
  6. Mda...cu ocazia asta mi-am fixat si comanda /setlevel ca tot din cauza asta primeam si acolo crash:)) din cauza uneia ~)
  7. Gata am rezolvat:)) Liniile problema: ShowTeleport( playerid, "Parkour Challenge - ~b~/pkchallenge" ); GameTextForPlayer( playerid, "~g~h~Welcome to~n~~h~~y~Parkour Challenge!", 4000, 3 ); /tc!
  8. Comanda asta: CMD:pkchallenge( PARAMS ) { LoginCheck( playerid ); if ( PlayerInfo[ playerid ][ pMinigame ] == 1 ) return SendClientMessage( playerid, COLOR_ULTRARED, "ERROR: You are already in the Parkour Challenge!" ); PlayerInfo[ playerid ][ pMinigame ] = 1; PlayerInfo[ playerid ][ pMinigameNr ] = 3; CC = 0; SetPlayerRaceCheckpoint( playerid, 0, RaceC[ CC ][ 0 ], RaceC[ CC ][ 1 ], RaceC[ CC ][ 2 ], RaceC[ CC+1 ][ 0 ], RaceC[ CC+1 ][ 1 ], RaceC[ CC+1 ][ 2 ], 3 ); SetPlayerPos( playerid, 1654.8634, 2768.9814, 10.8203 ); SetPlayerFacingAngle( playerid, 317.8502 ); ResetPlayerWeapons( playerid ); ShowTeleport( playerid, "Parkour Challenge - ~b~/pkchallenge" ); GameTextForPlayer( playerid, "~g~h~Welcome to~n~~h~~y~Parkour Challenge!", 4000, 3 ); return 1; } Am facut un minigame, cand tastez /pkchallenge primesc crash :| si imi dau seama care ii problema
  9. Ce nu merge? Comenzile nu merg? sau nu se incarca fs-ul sau ce??
  10. Macar un server Role Play, care este frumos, de mult nu am mai vazut asta! Bravo 5/5!
  11. Daca tot nu vroiai sa fie de la inceputul dialogului, puteai macar sa le pui in mijloc 2/5.
  12. ............... Puncte pana la cer:)) Nice pentru un incepator! 5/5!
  13. if ( PlayerInfo[ playerid ][ pMinigame ] == 1 ) { if ( PlayerInfo[ playerid ][ pMinigameNr ] == 4 ) { if ( CC < 70 ) { CC++; SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC+1 ][ 0 ], RC[ CC+1 ][ 1 ], RC[ CC+1 ][ 2 ], 1 ); } if ( CC == 70 ) { CC++; SetPlayerRaceCheckpoint( playerid, 1, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], 2 ); } else if ( CC == 71 ) { DisablePlayerRaceCheckpoint( playerid ); PlayerInfo[ playerid ][ Coins ] += 50; PlayerInfo[ playerid ][ RaceScore ] += 1; GivePlayerMoney( playerid, 100000 ); SendClientMessage( playerid, COLOR_GREY, "You receive {FF9900}+50 {ACACAC}coins, {FF9900}+1 {ACACAC}Race Score and {FF9900}$100.000" ); GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~y~Winner!!", 3500, 3 ); } } }
  14. Mi-am creat un Mini-Minigame. In filterscript cand era mergea totul bine, dar cand l-am pus la OnPlayerEnterRaceCheckpoint In GameMode imi da errorile astea: C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 029: invalid expression, assumed zero C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 029: invalid expression, assumed zero C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : warning 215: expression has no effect C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : error 001: expected token: ";", but found "]" C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(5676) : fatal error 107: too many error messages on one line Asta este linia: SetPlayerRaceCheckpoint( playerid, 0, RC[ CC ][ 0 ], RC[ CC ][ 1 ], RC[ CC ][ 2 ], RC[ CC+1 ][ 0 ], RC[ CC+1 ][ 1 ], RC[ CC+1 ][ 2 ], 1 ); De nu mai stiu ce sa fac x(
  15. Cauta la OnPlayerEnterVehicle si pe acolo ar trebuii sa fie functia TogglePlayerControllable
  16. Se poate face asta )...dar trebuie sa ai GarHouse in GameMode! PS. - GarHouse ii mai complicat Mai bine folosesti AntiRonix:P
  17. http://wiki.sa-mp.com/wiki/AddStaticPickup sau http://wiki.sa-mp.com/wiki/CreatePickup http://wiki.sa-mp.com/wiki/DestroyPickup
  18. Nu se incurajeaza decompilarea!
  19. Daca nu stiai exsita un topic unde se posteaza probleme din astea! Reported!
  20. Pune la response-ul acelui dialog( 12345 ) asta: if ( strlen( inputtext ) < 0 || strlen( inputtext ) > 6 ) return ShowPlayerDialog...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.