AleX124 Posted May 3, 2013 Report Share Posted May 3, 2013 [pawn]CMD:ls(playerid, params[])931 -> } SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359);933 return 1;}[/pawn]C:\Chestii\samp\RMF\gamemodes\RMF.pwn(931) : error 029: invalid expression, assumed zero C:\Chestii\samp\RMF\gamemodes\RMF.pwn(933) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Link to comment Share on other sites More sharing options...
Diabolik Posted May 3, 2013 Report Share Posted May 3, 2013 Incearca asa:CMD:ls(playerid,params[]) { SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359); return (1) ; } LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 Am reusit , multumesc .OFF: Storm , ce mai faci ma ? ) Link to comment Share on other sites More sharing options...
burnfire Posted May 3, 2013 Report Share Posted May 3, 2013 O metoda in care iti poti adauga comanda este urmatoarea:Cauta in GM public OnPlayerCommandText Daca nu ai public OnPlayerCommandText adauga in gm asta:[pawn]public OnPlayerCommandText(playerid, cmdtext[]){ new index, cmd[20]; cmd = strtok(cmdtext, index); if (strcmp(cmd, "/ls", true) == 0) { SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359); return 1; } return 0;}[/pawn]Daca ai deja publicul adauga numai:[pawn]new index, cmd[20]; cmd = strtok(cmdtext, index); if (strcmp(cmd, "/ls", true) == 0) { SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359); return 1; }[/pawn]MDEAA..metoda strcmp AR TREBUI SCOASA DE PE PIATA CA SA ZIC ASA )!!!Metoda asta NO NUMAI CA INCURCA INCEPATORII,DAR ESTE GREU DE FOLOSIT SI MAI ESTE SI INCEATA!!!!Asa ca,trebuie sa incepem cu ZCMD:[pawn]CMD:ls(playerid){ SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359); return 1;} [/pawn]EDIT:Am vazut ca ai rezolvat...ai fost mai rapid...:D Link to comment Share on other sites More sharing options...
XStormiest Posted May 3, 2013 Report Share Posted May 3, 2013 Dea, stiu nu inteleg , deci toti incepatorii prefera sa se incurce cu chestii grele de folosit si complicateIn loc de zcmd/ycmd folosesc strcmp/strtcatIn loc de y_ini folosesc dini ( in fine e bun si dini , dar este foarte incet iar daca ai vreo 1000 conturi inregistrate sv incepe sa mearga mai greu)Si multe alteleEu de ex cunoscCommand Processor: zcmd,ycmd, strcmpSave Processor: dini, Y_INI, ( foarte putin din SQL, de aia folosesc BUD)Looping: foreach Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate. Link to comment Share on other sites More sharing options...
Question
AleX124
[pawn]CMD:ls(playerid, params[])
931 -> }
SetPlayerPos(playerid, 2488.0310,-1669.7568,13.3359);
933 return 1;
}[/pawn]
Link to comment
Share on other sites
4 answers to this question
Recommended Posts