22.09.2013, 10:56
So, i just started doing stuff with zcmd, and i wanted to try a test cmd.
[I had the include set in the folder, and #include at the script]
But, when i try to compile, i get this ->
test.pwn(870) : error 029: invalid expression, assumed zero
test.pwn(870) : error 017: undefined symbol "cmd_test"
test.pwn(870) : error 029: invalid expression, assumed zero
test.pwn(870) : fatal error 107: too many error messages on one line
Script:
COMMAND:test(playerid, params[]) [Line 870]
{
SendClientMessage(playerid, COLOR_PINK, "TEST");
return 1;
}
return 0;
}
(NOTE: Rest of the scripts are in the (strcmp) format!)
[I had the include set in the folder, and #include at the script]
But, when i try to compile, i get this ->
test.pwn(870) : error 029: invalid expression, assumed zero
test.pwn(870) : error 017: undefined symbol "cmd_test"
test.pwn(870) : error 029: invalid expression, assumed zero
test.pwn(870) : fatal error 107: too many error messages on one line
Script:
COMMAND:test(playerid, params[]) [Line 870]
{
SendClientMessage(playerid, COLOR_PINK, "TEST");
return 1;
}
return 0;
}
(NOTE: Rest of the scripts are in the (strcmp) format!)