Enum Information returns C?
#23

Quote:
Originally Posted by knackworst
Посмотреть сообщение
why using strval(cmdtext
I usually avoid sscanf it if it is not necessary, I am not sure if strval would be faster in this one

Quote:
Originally Posted by knackworst
Посмотреть сообщение
if u can also use dcmd and scanff?
this command wouldnt work with dcmd or zcmd as it doesnt use any space between command and parameter
sure you could use sscanf for that but I only use it for two parameter or more

Quote:
Originally Posted by knackworst
Посмотреть сообщение
and also I don't really see where u made it that there will be a Clientmessage created for each mission.
its something I find very usefull but I don't see where in the code it makes that there will be created 1 message for 1 mission info...
the loop gets executed for each index of the array, if you would hardcode that loop it would look like that

pawn Код:
if(Mission[0][mission_type] == type) {
    format(string, sizeof string, "Mission: \"%s\" Person: \"%s\"", Mission[0][mission_name], Mission[0][person_name]);
    SendClientMessage(playerid, COLOR_YELLOW_LABEL, string);
}
if(Mission[1][mission_type] == type) {
    format(string, sizeof string, "Mission: \"%s\" Person: \"%s\"", Mission[1][mission_name], Mission[1][person_name]);
    SendClientMessage(playerid, COLOR_YELLOW_LABEL, string);
}
if(Mission[2][mission_type] == type) {
    format(string, sizeof string, "Mission: \"%s\" Person: \"%s\"", Mission[2][mission_name], Mission[2][person_name]);
    SendClientMessage(playerid, COLOR_YELLOW_LABEL, string);
}
// and so on
so if the type would be 1 the first two would get called
Reply


Messages In This Thread
Enum Information returns C? - by knackworst - 01.10.2011, 18:50
Re: Enum Information returns C? - by [MWR]Blood - 01.10.2011, 19:01
Re: Enum Information returns C? - by kacper55331 - 01.10.2011, 19:07
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:10
Re: Enum Information returns C? - by [MWR]Blood - 01.10.2011, 19:12
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:14
Re: Enum Information returns C? - by [MWR]Blood - 01.10.2011, 19:16
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:18
Re: Enum Information returns C? - by [MWR]Blood - 01.10.2011, 19:23
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:34
Re: Enum Information returns C? - by MadeMan - 01.10.2011, 19:40
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:47
Re: Enum Information returns C? - by [MWR]Blood - 01.10.2011, 19:49
Re: Enum Information returns C? - by knackworst - 01.10.2011, 19:55
Re: Enum Information returns C? - by MadeMan - 01.10.2011, 19:56
Re: Enum Information returns C? - by knackworst - 01.10.2011, 20:27
Re: Enum Information returns C? - by MadeMan - 01.10.2011, 20:42
Re: Enum Information returns C? - by knackworst - 01.10.2011, 20:57
AW: Enum Information returns C? - by Nero_3D - 01.10.2011, 21:19
Re: Enum Information returns C? - by knackworst - 01.10.2011, 21:27
AW: Re: Enum Information returns C? - by Nero_3D - 01.10.2011, 21:40
Re: Enum Information returns C? - by knackworst - 01.10.2011, 21:47
AW: Re: Enum Information returns C? - by Nero_3D - 01.10.2011, 22:20
Re: Enum Information returns C? - by knackworst - 01.10.2011, 22:26
AW: Re: Enum Information returns C? - by Nero_3D - 01.10.2011, 22:48
Re: Enum Information returns C? - by knackworst - 01.10.2011, 22:51
Re: Enum Information returns C? - by knackworst - 02.10.2011, 00:31
AW: Re: Enum Information returns C? - by Nero_3D - 02.10.2011, 01:46
Re: Enum Information returns C? - by knackworst - 02.10.2011, 01:48
AW: Re: Enum Information returns C? - by Nero_3D - 02.10.2011, 02:03

Forum Jump:


Users browsing this thread: 16 Guest(s)