Diabolik Posted March 21, 2012 Report Share Posted March 21, 2012 Cum pun un server sa functioneze pe zcmd? LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
Rimmon Posted March 21, 2012 Report Share Posted March 21, 2012 Pui sus in script [pawn]#include <zcmd>[/pawn] Massari e curva mea Link to comment Share on other sites More sharing options...
Diabolik Posted March 21, 2012 Author Report Share Posted March 21, 2012 Pui sus in script [pawn]#include <zcmd>[/pawn]Am incercat dar cand le pun si dau compilare si intru pe server nu merg comenziile. LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
Rimmon Posted March 21, 2012 Report Share Posted March 21, 2012 Am incercat dar cand le pun si dau compilare si intru pe server nu merg comenziile.pai manNu lesi comenzile la [pawn]OnPlayerCommandText[/pawn]Le pui undeva jos in script asa[pawn]CMD:comanda(playerid,params[]);{//Comandareturn 1;}[/pawn] Massari e curva mea Link to comment Share on other sites More sharing options...
Diabolik Posted March 21, 2012 Author Report Share Posted March 21, 2012 Ok stai sa vad ce imi iese si dau EDIT>Tot nu merge:imi da erorile astea:C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 017: undefined symbol "comanda" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 033: array must be indexed (variable "-unknown-") C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
IcE. Posted March 21, 2012 Report Share Posted March 21, 2012 http://forum.sa-mp.com/showthread.php?t=276063 nu mai adaugi nici un include nimic.Merg toate comenzile. Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis! Link to comment Share on other sites More sharing options...
Diabolik Posted March 21, 2012 Author Report Share Posted March 21, 2012 Imi da un warning: C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(931) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Warning. Linia 391: new vehicleid = GetPlayerVehicleID(vehicleid); Tot: public OnPlayerCommandText(playerid, cmdtext[]) { new pos, funcname[32]; while (cmdtext[++pos] > ' ') { funcname[pos-1] = tolower(cmdtext[pos]); } format(funcname, sizeof(funcname), "cmd_%s", funcname); while (cmdtext[pos] == ' ') pos++; if (!cmdtext[pos]) { return CallLocalFunction(funcname, "is", playerid, "\1"); } return CallLocalFunction(funcname, "is", playerid, cmdtext[pos]); new vehicleid = GetPlayerVehicleID(vehicleid); if(strcmp(cmdtext,"/carcolor black",true)==0) { ChangeVehicleColor(GetPlayerVehicleID(vehicleid), 0, 0); 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...
IcE. Posted March 21, 2012 Report Share Posted March 21, 2012 [pawn]public OnPlayerCommandText(playerid, cmdtext[]){ //comenzi //comenzi new pos, funcname[32]; while (cmdtext[++pos] > ' ') { funcname[pos-1] = tolower(cmdtext[pos]); } format(funcname, sizeof(funcname), "cmd_%s", funcname); while (cmdtext[pos] == ' ') pos++; if (!cmdtext[pos]) { return CallLocalFunction(funcname, "is", playerid, "\1"); } return CallLocalFunction(funcname, "is", playerid, cmdtext[pos]);}[/pawn] Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis! Link to comment Share on other sites More sharing options...
Diabolik Posted March 22, 2012 Author Report Share Posted March 22, 2012 Si cu linia new vehicleid = GetPlayerVehicleID(vehicleid); LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted March 22, 2012 Report Share Posted March 22, 2012 Ce-i greu?De exemplu, comanda: if ( strcmp( cmdtext, "/killnoobs", true ) == 10 ) { SetPlayerHealth( playerid, 0 ); SendClientMessage( playerid, ~1, "I kill you, noob!" ); return 1; } in ZCMD va fi: [code] CMD:killnoobs( playerid, params[ ] ) { SetPlayerHealth( playerid, 0 ); SendClientMessage( playerid, ~1, "I kill you, noob!" ); return 1; } + ca comenzile in ZCMD trebuie sa fie in afara oricarui callback. Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Diabolik Posted March 22, 2012 Author Report Share Posted March 22, 2012 Da am inteles asta dar cu linia new vehicleid = GetPlayerVehicleID(vehicleid); daca o sterg imi da 26 de ori? LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
Razvann Posted March 25, 2012 Report Share Posted March 25, 2012 new vehicleid = GetPlayerVehicleID(playerid); Link to comment Share on other sites More sharing options...
Question
Diabolik
Cum pun un server sa functioneze pe zcmd?
LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP
Link to comment
Share on other sites
11 answers to this question
Recommended Posts