angel
Membru-
Posts
179 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Everything posted by angel
-
Eu cred ca l-am introdus corect codul.Poate alta e problema...
-
Incearca asa cum am scris eu exact
-
Daca nu merge cu cmdtext,incearca sa pui "inputtext"
-
Poftim,incearca..Asta e de la gm-ul meu,ar trebui sa mearga.la mine functioneaza... if(!strcmp(cmdtext, "/requestevent", true) || !strcmp(cmdtext, "/reqe", true)) // By AlyN { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You`re being chased by police, you can`t make an event."); if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}There's already an active event."); if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}You're already requesting an event, cancel it first."); new title[50], location[50], description[100], prize, time[50]; if(sscanf(params, "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>"); if(strlen(title) < 1 || strlen(title) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}Invalid amount of characters in title."); if(strlen(location) < 1 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}Invalid amount of characters in location."); if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}Invalid amount of characters in time."); if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}Invalid amount of characters in description."); if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFB870}Invalid prize amount."); new string[1000],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); requestingevent[playerid] = 1; strmid(requestingtitle[playerid], title, 0, strlen(title)); strmid(requestinglocation[playerid], location, 0, strlen(location)); strmid(requestingdescription[playerid], description, 0, strlen(description)); requestingprize[playerid] = prize; strmid(requestingtime[playerid], time, 0, strlen(time)); format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",title,FormatNumber(prize), location, time); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Event: Organizer: %s Description: %s",name,description); SendClientMessage(playerid, 0xFFFFFFFF, string); SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait."); format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Event %d: Title: %s Prize: $%s Location: %s Time: %s",playerid,title,FormatNumber(prize), location, time); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Event %d: Organizer: %s Description: %s",playerid,name,description); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); ABroadCast(0xFFFFFFFF,string,1); return 1; }
-
Incearca acum: if(!strcmp(cmdtext, "/requestevent", true) || !strcmp(cmdtext, "/reqe", true)) // By AlyN { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid,COLOR_DS,"{37B9C8}You`re being chased by police, you can`t make an event."); if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}There's already an active event."); if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}You're already requesting an event, cancel it first."); new title[50], location[50], description[100], prize, time[50]; if(sscanf( "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>"); if(strlen(title) < 1 || strlen(title) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in title."); if(strlen(location) < 1 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in location."); if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in time."); if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in description."); if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid prize amount."); new dstring[1000],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); requestingevent[playerid] = 1; strmid(requestingtitle[playerid], title, 0, strlen(title)); strmid(requestinglocation[playerid], location, 0, strlen(location)); strmid(requestingdescription[playerid], description, 0, strlen(description)); requestingprize[playerid] = prize; strmid(requestingtime[playerid], time, 0, strlen(time)); format(dstring, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid); SendClientMessage(playerid, 0xFFFFFFFF, dstring); format(dstring, sizeof(dstring), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",title,FormatNumber(prize), location, time); SendClientMessage(playerid, 0xFFFFFFFF, dstring); format(dstring, sizeof(dstring), "{FFFF00}Event: Organizer: %s Description: %s",name,description); SendClientMessage(playerid, 0xFFFFFFFF, dstring); SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait."); format(dstring, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid); ABroadCast(0xFFFFFFFF,dstring,1); format(dstring, sizeof(dstring), "{FFFF00}Event %d: Title: %s Prize: $%s Location: %s Time: %s",playerid,title,FormatNumber(prize), location, time); ABroadCast(0xFFFFFFFF,dstring,1); format(dstring, sizeof(dstring), "{FFFF00}Event %d: Organizer: %s Description: %s",playerid,name,description); ABroadCast(0xFFFFFFFF,dstring,1); format(dstring, sizeof(dstring), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); ABroadCast(0xFFFFFFFF,dstring,1); return 1; }
-
Incearca: if(!strcmp(cmdtext, "/requestevent", true) || !strcmp(cmdtext, "/reqe", true)) // By AlyN { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid,COLOR_DS,"{37B9C8}You`re being chased by police, you can`t make an event."); if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}There's already an active event."); if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}You're already requesting an event, cancel it first."); new title[50], location[50], description[100], prize, time[50]; if(sscanf( "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>"); if(strlen(title) < 0 || strlen(title) > 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in title."); if(strlen(location) < 0 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in location."); if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in time."); if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in description."); if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid prize amount."); new string[256],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); requestingevent[playerid] = 1; strmid(requestingtitle[playerid], title, 0, strlen(title)); strmid(requestinglocation[playerid], location, 0, strlen(location)); strmid(requestingdescription[playerid], description, 0, strlen(description)); requestingprize[playerid] = prize; strmid(requestingtime[playerid], time, 0, strlen(time)); format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",title,FormatNumber(prize), location, time); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Event: Organizer: %s Description: %s",name,description); SendClientMessage(playerid, 0xFFFFFFFF, string); SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait."); format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Event %d: Title: %s Prize: $%s Location: %s Time: %s",playerid,title,FormatNumber(prize), location, time); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Event %d: Organizer: %s Description: %s",playerid,name,description); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(string), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); ABroadCast(0xFFFFFFFF,string,1); return 1; }
-
Banuiesc ca ai scris asa: Trebuie sa pui intre titlu si locatie..etc
-
Si eu sunt in cautarea unei firme de hosting SA-MP bune,plata prin paypal/payza/skrill.Ceva bun daca stiti,si ieftin daca se poate )
-
Poftim "Stimate": C:Documents and SettingsXYZDesktopServer SA-MPpawnoincludesscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPpawnoincludesscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPpawnoincludesscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPpawnoincludesscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3313) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3319) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3341) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3370) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3600) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3649) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3798) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3810) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(3917) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(4210) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(4225) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(4736) : warning 219: local variable "giveplayer" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(4736) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(4741) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5042) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5056) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5078) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5098) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5150) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5315) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5354) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5404) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5404) : warning 219: local variable "sendername" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5498) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5574) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(5619) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6122) : warning 219: local variable "string" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6122) : warning 219: local variable "sendername" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6133) : warning 219: local variable "HP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6133) : warning 219: local variable "AP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6133) : warning 219: local variable "remainHP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6134) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6135) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6138) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6139) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6144) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6154) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6155) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6169) : warning 219: local variable "HP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6169) : warning 219: local variable "AP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6169) : warning 219: local variable "remainHP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6170) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6171) : warning 213: tag mismatch C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6174) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6175) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6180) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6190) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6191) : warning 202: number of arguments does not match definition C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6231) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6233) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6234) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6235) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6238) : error 021: symbol already defined: "GetPlayerName" C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6241) : error 021: symbol already defined: "Kick" C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6242) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6244) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6246) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6249) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6250) : error 025: function heading differs from prototype C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6251) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6252) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6255) : warning 219: local variable "HP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6256) : warning 219: local variable "AP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6257) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6259) : error 017: undefined symbol "amount" C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6261) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6264) : warning 219: local variable "remainHP" shadows a variable at a preceding level C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6264) : error 025: function heading differs from prototype C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6265) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6268) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6269) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6272) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6274) : error 021: symbol already defined: "remainHP" C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6275) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6275) : error 021: symbol already defined: "SetPlayerArmourEx" C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6277) : error 010: invalid function or declaration C:Documents and SettingsXYZDesktopServer SA-MPgamemodesromaniagm.pwn(6280) : error 010: invalid function or declaration Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors.
-
Adauga: Deasupra la:
-
if(dialogid == 22521) { if(response) { if(!isnull(inputtext)) { new points = strval(inputtext); if(playerVariables[playerid][pInsurance] == 10) { SendClientMessage(playerid, COLOR_ATTACK, "Ai deja 10 puncte de asigurare ."); return 1; } new amount; if(amount < 1 || amount > 10) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Nu poti cumpara mai putin de 1 sau mai mult de 10 puncte."); new check = playerVariables[playerid][pInsurance] + amount; if(check > playerVariables[playerid][pMaxInsurance]) { new string[128]; format(string, sizeof(string), "{FFB870}Nu mai poti cumpara,ai deja %d puncte asigurare.",playerVariables[playerid][pInsurance]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(playerVariables[playerid][pCarSelected] == 1) { if(points >= 0) { new bani = playerVariables[playerid][pInsurance]*points; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints] += points; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", points, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 2) { if(points > 0) { new bani = playerVariables[playerid][pInsurance2]*points; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints2] += points; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", points, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 3) { if(points > 0) { new bani = playerVariables[playerid][pInsurance3]*points; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints3] += points; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", points, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } else if(playerVariables[playerid][pCarSelected] == 4) { if(points > 0) { new bani = playerVariables[playerid][pInsurance4]*points; if(playerVariables[playerid][pMoney] > bani) { playerVariables[playerid][pInsurancePoints4] += points; playerVariables[playerid][pMoney] -= bani; format(szMessage,256,"Ai cumparat %d puncte de asigurare cu $%s.", points, NumberFormat(bani)); SCM(playerid,COLOR_ATTACK, szMessage); } else SCM(playerid, -1,"You don't have enought money."); } } } } }
-
Foarte frumos,si e foarte bun,pentru ca multi folosesc aim la eventuri,waruri..etc. 10/10 P.S: Nu trebuie ceva include sau definite unele chestii?De ex eu lam pus in gm si am primit o gramada de erori
-
Incearca,astept raspunsul
-
Incearca asa: http://pastebin.com/GDffpQJ9 Dupa ce ai pus,adauga la playerVariables : Iar asta: adauga la OnGameModeInit Si incearca
-
Cand ai 0 puncte si incerci sa cumperi 10,poti cumpara? de mai multe ori sau o singura data?...Tu vrei ca sa poata cumpara puncte pana in maxim 10 chiar daca mai are 9 sau 6..etc?
-
Scuze greseala mea nu am observat undeva.Incearca acum
-
Hmm...Tot asa face cand ai 10/10 mai poti cumpara?
-
Sa incerci asa cum ti-am pus eu.Daca omu iti posteaza ceva,nu inseamna neaparat ca e pentru +1.Incerc sa te ajut,din cate vad pe aici.Cam asta ar fi problema nu iti apare zona...
-
Incearca asta:
-
Daca masinile personale sunt cu CarInfo, uite comanda de la fostul meu gm: http://pastebin.com/1ebA1ACJ Daca nu atunci posteaza te rog comanda park
-
Posteaza si codul de deschidere a portilor.
-
Poti posta te rog si restul codului?Adica cand dai open si se deschid
-
La fiecare: Din codul postat aici La sfarsit in loc de "4.0" pune "0.0" si incearca asa