ARTFollow. Posted March 15, 2015 Posted March 15, 2015 Descriere tutorial: Vreau sa stiu si eu cum schimb spawnul de la inceput , pentru ca e un bug , cand te inregistrezi te da in jail.
krax Posted March 16, 2015 Posted March 16, 2015 Pai cauti spawn-ul pe care il ai , il inlocuiesti cu cel pe care'l vrei . Daca e nevoie setezi si interiorul pe "0" . P.S.: Server RP sau Stunt ? ? ?
Jirk Posted March 16, 2015 Posted March 16, 2015 new Float:CivilSpawns[1][1] = { {1081.2350,-1697.1350,13.5469} // aici coordonatele tale }; Sau cauta in gamemode tau "civilspawns" si modifica coordonatele
ARTFollow. Posted March 16, 2015 Author Posted March 16, 2015 (edited) Am rezolvat , dar mai am o problema :-? Vreau sa fac un dealership si vreau sa fac o comanda prin care sa-ti zica ca nu esti la dealership : eu am inceput asa : //===============================================================================================// CMD:buycar(playerid, params[]) { if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!"); return 1; } //===============================================================================================// Si imi da urmatoarele erori : C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(10620) : warning 219: local variable "mod" shadows a variable at a preceding level C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : warning 217: loose indentation C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 029: invalid expression, assumed zero C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 017: undefined symbol "cmd_buycar" C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : error 029: invalid expression, assumed zero C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(22091) : 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. Am bagat #include <sscanf2> #include <zcmd> Si tot degeaba La linia 10620 am : if(BizzInfo[location-99][bProducts] <= 0) { GameTextForPlayer(playerid, "~r~Nu ai destui bani.", 5000, 1); return (1) ; } new mod = 100; tmp = strtok(cmdtext, idx); // LINIA 10620 if(!strlen(tmp)) { format(string, sizeof(string), "{3C9DF6}Utilizare Comanda{FFFFFF}: /buygun [numele armei] [munitia]"); Va rog ajutati-ma ! Nu vreau neaparat sa fac prin cmd comanda aceea :-s EDIT : Am rezolvat partea cu comanda . Am schimbat modul de a face comanda Din: //===============================================================================================// CMD:buycar(playerid, params[]) { if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!"); return 1; } //===============================================================================================// Am facut : //===============================================================================================// if(strcmp(cmd, "/buycar", true) == 0) { if(!PlayerToPoint(5.0,playerid,0.0,0.0,0.0)) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti la dealership!"); return 1; } //===============================================================================================// Sper ca e bine S-a compliat dar tot imi da eroarea : C:Documents and SettingshomeDesktopGamemodesgamemodesARTF.pwn(10620) : warning 219: local variable "mod" shadows a variable at a preceding level Edited March 16, 2015 by ARTFollow.
#Teddy Posted March 17, 2015 Posted March 17, 2015 La ce iti foloseste variabila: "new mod = 100;" ? Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP
ARTFollow. Posted March 17, 2015 Author Posted March 17, 2015 Sincer :-? habar n-am . Am incercat sa-l sterg dar dadeau mai multe erori .
#Teddy Posted March 18, 2015 Posted March 18, 2015 In loc de : new mod = 100; Incearca sa pui: new mod [100]; Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP
Recommended Posts