[mysql] What's wrong with this CMD ?
#4

Thank you !


But if I do this, as I said I got a lot of errors:


Код:
Beta.pwn(2385) : error 033: array must be indexed (variable "nom")
Beta.pwn(2386) : error 035: argument type mismatch (argument 1)
Beta.pwn(2389) : error 035: argument type mismatch (argument 1)
Beta.pwn(2391) : error 033: array must be indexed (variable "nom")
Beta.pwn(2392) : error 033: array must be indexed (variable "nom")
Beta.pwn(2393) : error 035: argument type mismatch (argument 1)
Beta.pwn(2400) : error 035: argument type mismatch (argument 1)
Line 2385:
Код:
if(playerid == nom) return SendClientMessage(playerid, Rouge, "Vous ne pouvez pas transferer d'argent а vous mкme.");
Line 2386:
Код:
if(IsPlayerConnected(nom))
Line 2389:
Код:
GetPlayerName(nom, joueurdestinataire, sizeof(joueurdestinataire));
Line 2391:
Код:
pInfo[nom][Banque] += somme;
Line 2392:
Код:
format(string, sizeof(string), "%s a transferй %d $ sur votre compte bancaire. Vous avez maintenant %d $ sur votre compte.", joueuremetteur, somme, pInfo[nom][Banque]);
Line 2393:
Код:
SendClientMessage(nom, Jaune, string);
Line 2400:
Код:
if(!IsPlayerConnected(nom))
Should I, every time replace nom by nom[24] ?

Thank you !



EDIT:
Quote:
Originally Posted by CuervO
Посмотреть сообщение
By this way you would also need to change the script, you can no longer do IsPlayerConnected(nom) (since it requieres a numerical input), instead, you would need a loop to check thru all players if their name equals to the typed one.
How could I do this ?
Reply


Messages In This Thread
[mysql] What's wrong with this CMD ? - by anou1 - 16.02.2014, 17:11
Re: [mysql] What's wrong with this CMD ? - by anou1 - 16.02.2014, 20:14
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:25
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 01:31
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:33
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 01:36
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 01:40
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 02:01
Re: [mysql] What's wrong with this CMD ? - by CuervO - 17.02.2014, 02:04
Re: [mysql] What's wrong with this CMD ? - by anou1 - 17.02.2014, 02:25

Forum Jump:


Users browsing this thread: 3 Guest(s)