SA-MP Forums Archive
Warnings.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warnings.. (/showthread.php?tid=412482)



Warnings.. - Evation - 02.02.2013

C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(74245) : warning 202: number of arguments does not match definition
C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(8655 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(87697) : warning 203: symbol is never used: "SendAudioToRange"


The bottom line (87697) doesn't exist.
line:74245 new audioid = SendAudioURLToRange(inputtext,volume,seek,aX,aY,aZ ,range);

Line:86558 new string[86];
format(string, sizeof(string), "You're now in debt; you must repay the debt of $%d. If not, you will be arrested...", GetPlayerCash(j));
SendClientMessageEx(j, COLOR_LIGHTRED, string);
MoneyMessage[j] = 1;


Thanks.


Re: Warnings.. - Hernando - 02.02.2013

for
new string[86];
format(string, sizeof(string), "You're now in debt; you must repay the debt of $%d. If not, you will be arrested...", GetPlayerCash(j));
SendClientMessageEx(j, COLOR_LIGHTRED, string);
MoneyMessage[j] = 1;

try this:
new string2[86];
format(string2, sizeof(string2), "You're now in debt; you must repay the debt of $%d. If not, you will be arrested...", GetPlayerCash(j));
SendClientMessageEx(j, COLOR_LIGHTRED, string2);
MoneyMessage[j] = 1;


Respuesta: Warnings.. - Strier - 02.02.2013

C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(87697) : warning 203: symbol is never used: "SendAudioToRange"
^
You defined a variable you're not using.

Код:
C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(8655 : warning 219: local variable "string" shadows a variable at a preceding level
pawn Код:
new str[86];
format(str, sizeof(str), "You're now in debt; you must repay the debt of $%d. If not, you will be arrested...", GetPlayerCash(j));
SendClientMessageEx(j, COLOR_LIGHTRED, str);



Re: Warnings.. - Evation - 02.02.2013

The only thing with sendaudiotorange is "SendAudioToRange(audioid, volume, Float, Float:y, Float:z, Float:range)"
And if i remove it, it crashes my pawno.



What about?
C:\Users\Nathan\Desktop\Nathan\Development\GTA Server\Evation RP - 3x\gamemodes\ERPfireworks.pwn(74245) : warning 202: number of arguments does not match definition


Respuesta: Warnings.. - Strier - 02.02.2013

Items by default: audioid, volume, Float, Float:y, Float:z, Float:range
Items you're typing: inputtext,volume,seek,aX,aY,aZ ,range

You're typing 7 when the number of arguments is 6...


Re: Warnings.. - Evation - 02.02.2013

How do I fix O.o


Re: Warnings.. - Evation - 02.02.2013

Dw, fixed!