How can I make this so that it can only be used once after each respawn?
#7

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
Код:
new gearme;
should be
Код:
new gearme[MAX_PLAYERS];
Quote:
Originally Posted by omgkillerzambies
Посмотреть сообщение
Ah, yeah, thanks for that Linux.
As I said, I'll give it a go tomorrow.

I appreciate it very much so.
Quote:
Originally Posted by omgkillerzambies
Посмотреть сообщение
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(133) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(150) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(207) : warning 211: possibly unintended assignment
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(207) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(211) : warning 211: possibly unintended assignment
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(211) : error 033: array must be indexed (variable "gearme")
C:\Users\Nanna\Desktop\SAMP\gamemodes\ni.pwn(217) : error 033: array must be indexed (variable "gearme")

Couldn't help myself, but going to bed now.
You should have a variable array thingy for each player, having a global variable will just allow the cmd to be used once by someone, and not everyone else.

EDIT: Colossus_'s post may be more helpful.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)