Jump to content

bossuldam

Membru
  • Posts

    6
  • Joined

  • Last visited

Everything posted by bossuldam

  1. Nick: bossuldam Problema: Nu fuctioneaza. In schimb, comanda cu /radar fuctioneaza, dar nu apare nimic cand cineva depaseste limita. Errori/warnings: Nu da nici o eroare sau warning Linii/script: http://pastebin.com/7760WS2p Ai incercat sa rezolvi singuri ?: Da
  2. Am incercat sa creez un faction chat, insa orice as face, pe server imi scrie "unknown command". [pawn] if(strcmp(cmdtext, "/f", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid,sendername,sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) return SendClientMessage(playerid, COLOR_BLUE, "SYNTHAX: /f(action) [message]"); if(gTeam[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not in a Faction"); if(gTeam[playerid] != 0) { new string[128],Fam = gTeam[playerid]; format(string,sizeof(string),"** (( %s: %s )) **",sendername,result); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam == Fam) SendClientMessage(i, COLOR_BLUE, string); } } } } return 1; } [/pawn] Codul nu e foarte complex (fara ranguri), doar daca esti intr-o factiune poti sa folosesti comanda.
  3. ms mult pentru sugestii dar am descoperit singur. Am uitat o virgula acolo la COLOR_WHITE,... Am mai lucrat un pic la el. :D
  4. incearca o chestie gen DestroyCar. nush tot scriptu da cred ca e pe wiki ;)
  5. aici e scriptul: if(strcmp(cmdtext,"/hsrock",true)==0) { if(GetPlayerScore(playerid) < -50) { SendClientMessage(playerid,COLOR_RED,"Ai Nevoie de 50scor"); return 1; } GivePlayerWeapon(playerid,36,200); SendClientMessage(playerid,COLOR_WHITE"Ai Primit Un Hsrocket Pentru 50scor"); return 1; } si aici sunt erorile (folosesc un sa-mp 0.3c): C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(322) : warning 225: unreachable code C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(649) : error 001: expected token: ",", but found "-string-" C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(649) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(649) : error 001: expected token: ";", but found ")" C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(649) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Jocuri\Server2\gamemodes\DUBm.pwn(649) : fatal error 107: too many error messages on one line
  6. sunt incepator de scripting si m-am apucat sa fac unul. este vorba de un script gen /barme dak ati mai auzit de el pe alte servere. Oricum, este un script in care poti sa iti cumperi arme gen HSrocket doar cu scor. Asa ca am creat un script dar tot imi da eroare. pls dak puteti sa imi dati un link va sunt recunoscator MS
×
×
  • 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.