Jump to content

Recommended Posts

Posted

Probabil va intrebati de ce fac asta? Pai, va spun acum.

O fac deoarece m-am plictisit de aceasta dezordine si de off-topicul facut aici, acea categorie fiind singura la care am acces la moderare am decis sa ma folosesc de ea. Cum spune si titlul topicului, persoanele care au nevoie de ajutor in scriptig pot deschide acolo un topic.

Voi incerca sa ma ocup cat mai des de categoria respectiva.

 

Link.

  • Upvote 3
Posted

Salut,as avea nevoie de comanda /shop pentru serverul meu sa inceapa gen asa:


if(strcmp(cmd, "/shop", true) == 0)


si asa mai departe.


Posted

 

Salut,as avea nevoie de comanda /shop pentru serverul meu sa inceapa gen asa:

if(strcmp(cmd, "/shop", true) == 0)

si asa mai departe.

 

Da pff ai sv de RP.

Posted

Da pff ai sv de RP.

De unde si ca are sever de rp =))) daca are o comanda pe strcmp nu inseamna ca e server de rp..

Posted (edited)

De unde si ca are sever de rp =))) daca are o comanda pe strcmp nu inseamna ca e server de rp..

 

stiu poate fi sv de stunt :) dar e evident cmd:shop ? e de rpg cred. Nu crezi si tu asta ?

Edited by Wizz..
  • 3 weeks later...
Posted (edited)

stiu poate fi sv de stunt :) dar e evident cmd:shop ? e de rpg cred. Nu crezi si tu asta ?

OFF: Asta nu are nici o legatura =)))) daca comanda incepe cu CMD:shop inseamna ca este alt procesor de comenzi adk ZCMD daca incepe cu if(strcmp(cmd ... e alt procesor de comenzi =))

 

ON:

CMD:createbizz(playerid, params[]){	new bizlevel, bizvalue, biztype, bizbuylevel;    if(PlayerInfo[playerid][pAdmin] >= 6)	{	    if(!sscanf(params, "iiii", biztype, bizvalue, bizlevel, bizbuylevel))	    {	        if(bizvalue < 0) return errorMessage(playerid, "The business has to costs 1$ atleast!");            if(bizbuylevel < 0) return errorMessage(playerid, "The business has to buy level 1 atleast!");	        if(bizlevel != 3) return errorMessage(playerid, "Business can also go up to 1!");	        if(biztype > 8 || biztype < 1) return errorMessage(playerid, "Business types only go between 1-7.");	        new bizID = -1;			for(new b = 1; b < MAX_BUSINESSES; b++) { if(BizzInfo[b][bizValue] == 0) { bizID = b; break; } }			if(bizID == -1) return errorMessage(playerid, "The maximum amount of businesses has been made.");	        CreateBiz(playerid, bizID, bizlevel, bizvalue, biztype, bizbuylevel);	    }	    else 		{ 		    commandUsage(playerid, "/createbizz [type] [value] [level] [buy level]"); 		    sendMessage(playerid, -1, "Available types: 1 - 24/7 | 2 - Clothes Shop | 3 - Rent Vehicle | 4 - Sex Shop | 5 - Burger Shot | 6 - Clucki'n Bell | 7 - CNN News.");            sendMessage(playerid, -1, "8 - Paintball |");			return 1; 		}	}	else { return errorMessage(playerid, "You are not authorized to use that command!"); }	return 1;}
E ceva cu comanda asta ? daca dau /createbizz in game si daca pun orice imi zice "Business can also go up to 1!" ce e mai sus , daca se poate rezolva ?

Si as vrea sa se adauge acolo si bank adk sa pot creea o banca pentru ca pe server nu exista o banca ..

Edited by Maffw
Posted (edited)

bizzlevel trebuie sa fie egal cu 3.

Rezolvat mrs :D

Edited by Maffw
Posted (edited)

Am nevoie si de o comanda de tip-ul /getmats ca pe bugged , adica dai /getmats dintr-o locatie si sa te duci in alta locatie si sa iti dea mats si bani . :D

 

Doar comanda de baza daca poti sa mi-o faci , restul adica locatiile le pun eu fara probleme .

Edited by Maffw
Posted

CMD:getmats(playerid, params[])

{

if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");

if(IsPlayerConnected(playerid))

{

if(PlayerInfo[playerid][pJob] != 9) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}You are not an Arms Dealer.");

if(IsPlayerInRangeOfPoint(playerid, 5, 597.5396,-1246.9562,18.2512))

{

if(GetPlayerCash(playerid) >= 500)

{

SetPlayerCheckpoint(playerid, 1713.1602,916.2577,10.8203, 10.0);

SendClientMessage(playerid, COLOR_WHITE, "Mergi la checkpoint pentru a colecta materialele.");

MatsHolding[playerid] = 1;

CP[playerid] = 6901;

GivePlayerCash(playerid,-500);

Update(playerid, pCashx);

}

else return SendClientMessage(playerid, COLOR_WHITE, "Nu ai $500.");

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Mergi la checkpoint pentru a colecta materialele.");

SetPlayerCheckpoint(playerid,597.5396,-1246.9562,18.2512, 10.0);

GotoMats[playerid] = 1;

}

}

return 1;

}

Posted (edited)

CMD:getmats(playerid, params[])

{

if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");

if(IsPlayerConnected(playerid))

{

if(PlayerInfouserbar[pJob] != 9) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}You are not an Arms Dealer.");

if(IsPlayerInRangeOfPoint(playerid, 5, 597.5396,-1246.9562,18.2512))

{

if(GetPlayerCash(playerid) >= 500)

{

SetPlayerCheckpoint(playerid, 1713.1602,916.2577,10.8203, 10.0);

SendClientMessage(playerid, COLOR_WHITE, "Mergi la checkpoint pentru a colecta materialele.");

MatsHoldinguserbar = 1;

CPuserbar = 6901;

GivePlayerCash(playerid,-500);

Update(playerid, pCashx);

}

else return SendClientMessage(playerid, COLOR_WHITE, "Nu ai $500.");

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Mergi la checkpoint pentru a colecta materialele.");

SetPlayerCheckpoint(playerid,597.5396,-1246.9562,18.2512, 10.0);

GotoMatsuserbar = 1;

}

}

return 1;

}

 

 

 

C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13976) : error 035: argument type mismatch (argument 2)
C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfouserbar"
C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : warning 215: expression has no effect
C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 001: expected token: ";", but found "]"
C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 029: invalid expression, assumed zero
C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Edited by Maffw
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp