Deejaybwg Posted June 21, 2011 Report Share Posted June 21, 2011 Am creat o comanda:if(strcmp(cmdtext,"/war",true) == 0) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(vehicleid,24,181.3335,1936.0958,17); GivePlayerWeapon(playerid,35,500); } else { SetPlayerPos(playerid,24,181.3335,1936.0958,17); } return 1; } Am dat compile si: C:\Users\Bwggu\Desktop\RSG.pwn(3557) : warning 202: number of arguments does not match definition C:\Users\Bwggu\Desktop\RSG.pwn(3562) : warning 202: number of arguments does not match definition 3557 SetVehiclePos(vehicleid,24,181.3335,1936.0958,17); 3562 SetPlayerPos(playerid,24,181.3335,1936.0958,17); www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
heker Posted June 21, 2011 Report Share Posted June 21, 2011 SetVehiclePos(vehicleid,24,181.3335,1936.0958,17);SetPlayerPos(playerid,24,181.3335,1936.0958,17);nu ai coordonatele bine, trebuie:SetPlayerPos(playerid,X,Y,Z);SetVehiclePos(vehicleid,X,Y,Z); Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 21, 2011 Author Report Share Posted June 21, 2011 Am pus asa:if(strcmp(cmdtext,"/war",true) == 0) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(vehicleid,24,181.3335); GivePlayerWeapon(playerid,35,500); } else { SetPlayerPos(playerid,24,181.3335); } return 1; } Si imi da: C:\Users\Bwggu\Desktop\RSG.pwn(3555) : warning 202: number of arguments does not match definition C:\Users\Bwggu\Desktop\RSG.pwn(3560) : warning 202: number of arguments does not match definition Uite coordonatele din Gta San Andreas User File/SAMP/savedpositions: AddPlayerClass(24,181.3335,1936.0958,17.9401,117.4777,0,0,0,0,0,0); // www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
Eazy Posted June 22, 2011 Report Share Posted June 22, 2011 AddPlayerClass(24,181.3335,1936.0958,17.9401,117.4777,0,0,0,0,0,0); // Incearca cu asta 181.3335,1936.0958,17.9401De ce am pus asta ? Pai sa fie cat mai explicit mereu dispare prima cifra de la inceput si de la sfarsit ultimele 2 alea dupa 0 (astea 117.4777,0,0,0,0,0,0 ) Cumpar sistem de garaje , /pmProprietar Xerom Zone Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 22, 2011 Author Report Share Posted June 22, 2011 Si ca sa imi dea o arma pe care o pun cand ma duc acolo cum fac?GivePlayerWeapon(playerid,35,500); dar cand ma duc acolo nu imi da arma.. www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
heker Posted June 22, 2011 Report Share Posted June 22, 2011 Si ca sa imi dea o arma pe care o pun cand ma duc acolo cum fac?GivePlayerWeapon(playerid,35,500); dar cand ma duc acolo nu imi da arma..da si uite fi atent aici ce reprezinta cifrele in save al tau:AddPlayerClass(24,181.3335,1936.0958,17.9401,117.4777,0,0,0,0,0,0); //24 - model skin181.3335 - coordonata X1936.0958 - coordonata Y17.9401 - coordonata Z Link to comment Share on other sites More sharing options...
IstuntmanI Posted June 22, 2011 Report Share Posted June 22, 2011 Corect (si cu arma):if(strcmp(cmdtext,"/war",true) == 0) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(vehicleid,181.3335,1936.0958,17); GivePlayerWeapon(playerid,35,500); } else { SetPlayerPos(playerid,181.3335,1936.0958,17); } GivePlayerWeapon(playerid,35,500); return 1; } Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 22, 2011 Author Report Share Posted June 22, 2011 Si daca un player este intr-o masina si scrie /war, cum fac sa ii dispara masina ? Sa il teleporteze numai pe el fara masina ? www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
Eazy Posted June 23, 2011 Report Share Posted June 23, 2011 Pai uite pune asta if(strcmp(cmdtext,"/war",true) == 0) { { SetPlayerPos(playerid,181.3335,1936.0958,17); } GivePlayerWeapon(playerid,35,500); return 1; } Asta new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) {Ii aducea si masina iar fara asta il aduce doar pe el si masina ramane in locul in care a scris Edit : Nu sti engleza ? Cumpar sistem de garaje , /pmProprietar Xerom Zone Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 23, 2011 Author Report Share Posted June 23, 2011 Edit : Nu sti engleza ?Stiu.EDIT: Puteti da locked. www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
Question
Deejaybwg
Am creat o comanda:
Am dat compile si: C:\Users\Bwggu\Desktop\RSG.pwn(3557) : warning 202: number of arguments does not match definition C:\Users\Bwggu\Desktop\RSG.pwn(3562) : warning 202: number of arguments does not match definitionwww.youtube.com/thebwgg
Link to comment
Share on other sites
9 answers to this question
Recommended Posts