03.02.2016, 13:47
Quote:
you can't replace a constant enum variable with a randomly created variable,
and this is not the proper way to assign a value to a string variable firstly, i guess you want to create a string variable in the command, so simply: pawn Код:
pawn Код:
pawn Код:
pawn Код:
- it would be better to create variable for each parameter, i.e, instead of that params[0] and params[1], just add 'id' variable, and a variable for amount, let's call it 'a', and the changes done are: pawn Код:
|
Quote:
This is happening because you are miss-understanding what enum is, You can think of enum as constant variables that will be replaced by numbers at compile time, so a Money in enum is not a string, but rather a number (for example 6th element in an array), so "Money" as string is not equal to Money of an enum, what you can do is however making a switch
PHP код:
|
C:\Users\мйшп\Desktop\All\GRRP\gamemodes\GlobalDM. pwn(1477) : error 001: expected token: "-string end-", but found "-identifier-"