error 035: argument type mismatch (argument 2)
#1

pawn Код:
command(createrace, playerid, params)
{
    #pragma unused params
    new string[42];
    if(GetGVarInt("race_active", rRA) >= 1) return SendClientMessage(playerid, 0xFFFFFFFF, "*   Please wait, a race is already active.");
   
    format(string, sizeof(string), "Race Type                                                       {66AACC}%d\nSet Race Checkpoints                        {66AACC}%f\nVehicle Model                                                            {66AACC}%d\nCustom Radio Station                                                 {66AACC}%s\nConfirm Race\nReset", GetGVarInt("race_type", rType), GetGVarFloat("race_cp", Float:rCP), GetGVarInt("race_veh", rVehicle), GetGVarString("race_radio", rCRU));
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Race Setup", string, "Cancel", "");
    return 1;
}
halp
Reply
#2

Which line is giving the error?
Reply
#3

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
Which line is giving the error?
pawn Код:
format(string, sizeof(string), "Race Type                                                       {66AACC}%d\nSet Race Checkpoints                        {66AACC}%f\nVehicle Model                                                            {66AACC}%d\nCustom Radio Station                                                 {66AACC}%s\nConfirm Race\nReset", GetGVarInt("race_type", rType), GetGVarFloat("race_cp", Float:rCP), GetGVarInt("race_veh", rVehicle), GetGVarString("race_radio", rCRU));
Thanks for the quick response
Reply
#4

PHP код:
format(stringsizeof(string), "here\nhere\nhere");
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Race Setup"string"Cancel"""); 
Reply
#5

Quote:
Originally Posted by ChromeAmazing
Посмотреть сообщение
PHP код:
format(stringsizeof(string), "here\nhere\nhere");
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Race Setup"string"Cancel"""); 
dont see how that's different
Reply
#6

Could really use an answer on this it's a simple error
Reply
#7

Lol? What Race Type? Show it please cuz its wrong
Reply
#8

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Lol? What Race Type? Show it please cuz its wrong
What are you talking about? Scroll over in the code to see the rest

REP+ for days to anyone who fixes this
Reply
#9

Show the declarations for rType, rCP, etc.
Reply
#10

try:
PHP код:
command(createraceplayeridparams)
{
    
#pragma unused params
    
new string[300];
    if(
GetGVarInt("race_active"rRA) >= 1) return SendClientMessage(playerid0xFFFFFFFF"*   Please wait, a race is already active.");
    
    
format(stringsizeof(string), "{66AACC}%d\nSet Race Checkpoints{66AACC}%f\nVehicle Model{66AACC}%d\nCustom Radio Station{66AACC}%s\nConfirm Race\nReset"GetGVarInt("race_type"rType), GetGVarFloat("race_cp"Float:rCP), GetGVarInt("race_veh"rVehicle), GetGVarString("race_radio"rCRU));
    
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Race Type"string"Race Setup""Cancel");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: