public OnPlayerCommandText(playerid)
{
if(!strcmp(cmdtext, "/piscina", true))
{
new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, "Sa-mp {FFFFFF}oXiGen{008500}Creat {FF8200}or", 0, OBJECT_MATERIAL_SIZE_256x128);
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
}
return 1;
}
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : warning 215: expression has no effect
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : warning 215: expression has no effect
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 001: expected token: ";", but found ")"
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 029: invalid expression, assumed zero
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(!strcmp(cmdtext, "/piscina", true))
if(!strcmp(cmdtext, "/piscina", true, 8))
SetObjectMaterialText(myobject, "Sa-mp {FFFFFF}oXiGen{008500}Creat {FF8200}or", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 029: invalid expression, assumed zero C:\Users\oXiGen\Desktop\Untitled.pwn(35) : warning 215: expression has no effect C:\Users\oXiGen\Desktop\Untitled.pwn(35) : warning 215: expression has no effect C:\Users\oXiGen\Desktop\Untitled.pwn(35) : warning 215: expression has no effect C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 001: expected token: ";", but found ")" C:\Users\oXiGen\Desktop\Untitled.pwn(35) : error 029: invalid expression, assumed zero C:\Users\oXiGen\Desktop\Untitled.pwn(35) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
public OnPlayerCommandText(playerid)
{
public OnPlayerCommandText(playerid, cmdtext[])
{
public OnPlayerCommandText(playerid)
{
if(!strcmp(cmdtext, "/piscina", true))
{
new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, "Sa-mp {FFFFFF}oXiGen{008500}Creat {FF8200}or", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
}
return 1;
}
What was the use of that comment? I literally posted the SAME thing just a few minutes ago, except you did not have 2 lines.
|
if(!strcmp(cmdtext, "/piscina", true)) |
#include <a_samp>