cmdtext issue
#1

whats up people. im having yet ANOTHER issue lol, this one i feel like i can fix it, but i cant seem to do so lol.

here are the problems

Код:
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\radio.pwn(13) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
here is the screw up.

pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define radiodialog

#pragma tabsize 0


public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/radio", true) == 0)
{
    ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel");
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/radio", true) == 0)
{
    ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel");
}//<<
    return 1;
}
you missed a closing curly brace.
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/radio", true) == 0)
{
    ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel");
}//<<
    return 1;
}
you missed a closing curly brace.
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define radiodialog




public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/radio", true) == 0)
{
    ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel");
}
    return 1;
}
still the same errors + ive tried that already.
Reply
#4

After starring at your script,I've SPOTTED THE error:
pawn Код:
#define radiodialog
,try:
pawn Код:
#define radiodialog 1
Reply
#5

Was way too slow. Cj correct ^^
Reply
#6

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
After starring at your script,I've SPOTTED THE error:
pawn Код:
#define radiodialog
,try:
pawn Код:
#define radiodialog 1
thank you sir :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)