Problem with '?'.
#5

Код HTML:
for(new i = 0; i < cache_num_rows(); i++)
{
    if(IsPlayerConnected(ReturnUser(name)) ? (format(str, sizeof(str), "%s", name)) : (format(str, sizeof(str), "%d", rank)))
}
Receive many errors:
Код HTML:
\include\sscanf2.inc(149) : warning 219: local variable "i" shadows a variable at a preceding level
\include\sscanf2.inc(193) : warning 219: local variable "i" shadows a variable at a preceding level
\include\mSelection.inc(656) : warning 219: local variable "i" shadows a variable at a preceding level
\GM.pwn(1657) : warning 219: local variable "i" shadows a variable at a preceding level
\GM.pwn(1791) : error 017: undefined symbol "GetPlayerSpeed"
\GM.pwn(1785) : error 017: undefined symbol "GetName"
.........and so on.........
If I remove the line:
Код HTML:
if(IsPlayerConnected(ReturnUser(name)) ? (format(str, sizeof(str), "%s", name)) : (format(str, sizeof(str), "%d", rank)))
everything works correctly.
Reply


Messages In This Thread
Problem with '?'. - by norton2 - 30.01.2016, 13:12
Re: Problem with '?'. - by BiosMarcel - 30.01.2016, 13:14
Re: Problem with '?'. - by BiosMarcel - 30.01.2016, 13:18
Re: Problem with '?'. - by Prostilov - 30.01.2016, 13:31
Re: Problem with '?'. - by norton2 - 30.01.2016, 13:38
Re: Problem with '?'. - by Prostilov - 30.01.2016, 13:41
Re: Problem with '?'. - by BiosMarcel - 30.01.2016, 13:42
Re: Problem with '?'. - by VVWVV - 30.01.2016, 13:43
Re: Problem with '?'. - by norton2 - 30.01.2016, 13:44
Re: Problem with '?'. - by norton2 - 30.01.2016, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)