Posted this yesterday on the Vice Underdogs Forum and though it would be nice here too.
You can find it here: Clicky!
You can find it here: Clicky!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
#include <a_samp>
#include <a_vcmp>
*******\pawno\vcmp.pwn(23) : warning 202: number of arguments does not match definition
*******\pawno\vcmp.pwn(23) : warning 202: number of arguments does not match definition
*******\pawno\vcmp.pwn(24) : error 017: undefined symbol "SetPlayerCameraPos"
*******\pawno\vcmp.pwn(25) : error 017: undefined symbol "SetPlayerCameraLookAt"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
2 Errors.
timer.refresh 0 2 vcmp.chkloc(%name)
alias vcmp.chkloc {
if ((vcmp.rob.loc($1) == The Warenhouse) && ($vcmp.area($vcmp.getid($1)) != The Warenhouse)) {
vcmp.msg $vcmp.getid($1) You didnt gave the money on time. You lose $ $+ 100.
vcmp.cash- $vcmp.getid($1) 100
}
elseif ((vcmp.rob.loc($1) == The Warenhouse) && ($vcmp.area($vcmp.getid($1)) == The Warenhouse)) {
vcmp.msg $vcmp.getid($1) You gave the money just on time! You get 50% that 2500!
vcmp.cash+ $vcmp.getid($1) 2500
}
}
Quote* /vcmp.rob.chk(%name): not connected to serverWhy
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
elseif ($2 == !bikers) {
var %a = 0
vcmp.say The follow players are using the Biker skin:
while (%a <= 50) {
if ($vcmp.skin($vcmp.name(%a)) == Biker) vcmp.say $vcmp.name(%a)
}
!inc %a
}
QuoteWhen i go to mIRC i see this error:
The follow players are using the Biker skin:
Quotewhy??? and how can i fix it?
* / if: not connected to server (line 1679, gus.mrc)
timer 1 3 vcmp.spawned($1)
alias vcmp.spawned {
if (Biker isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name(%id) Biker
vcmp.msg $vcmp.getid($1) You spawned as a Biker.
vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
}
if (Pole isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Stripper
vcmp.msg $vcmp.getid($1) You spawned as a Stripper.
vcmp.msg %id Area: $vcmp.area($vcmp.getid($1))
}
if (Fire isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Fire-Man
vcmp.msg $vcmp.getid($1) You spawned as a Fire-Man.
vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
}
if (Sady isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Paramedic
vcmp.msg $vcmp.getid($1) You spawned as a Paramedic.
vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
}
if (Police isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Cop
vcmp.msg $vcmp.getid($1) You spawned as a Cop.
vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
}
if (Military isin $vcmp.area($vcmp.getid($1))) {
hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Military
vcmp.msg $vcmp.getid($1) You spawned as a Military.
vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
}
}
Quote
* Timer 2 activated
-
* Timer 2 halted
-
* /vcmp.spawned($1 : not connected to server
QuoteBecause if i spawn i get no msg.
on *:SIGNAL:vcmp.spawn:{
var %name = $1
var %id = $vcmp.getid($1)
echo @Server 5 $+ >> $1 spawned $+
if ($vcmp.setting.spawn == On) vcmp.say >> $1 spawned
if (($vcmp.pass(%id) != $null) && ($vcmp.lin(%id) != 1)) {
if ($vcmp.ip(%name) == $readini(vcmp.admin.ini,IPS,%name)) {
vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Auto-Logged In (Admin Level: $vcmp.level(%id) $+ )
vcmp.msg %id You Auto Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
vcmp.timer.login %name off
!writeini -n vcmp.admin.ini LIN %name 1
!writeini -n vcmp.admin.ini IPS %name $vcmp.ip(%name)
}
else {
vcmp.announce %id PLEASE LOGIN TO THIS NICK-NAME
vcmp.msg %id You Must Login to this Nick-Name! Type: /c login <password>
vcmp.sethp %id 0
}
}
vcmp.add.spawns $vcmp.getid($1) 1
;!writeini -n vcmp.cheat.ini CHECK $1 0
vcmp.msg %id $vcmp.area(%id)
}
QuoteIt works
on *:SIGNAL:vcmp.spawn:{
var %name = $1
var %id = $vcmp.getid($1)
echo @Server 5 $+ >> $1 spawned $+
if ($vcmp.setting.spawn == On) vcmp.say >> $1 spawned
if (($vcmp.pass(%id) != $null) && ($vcmp.lin(%id) != 1)) {
if ($vcmp.ip(%name) == $readini(vcmp.admin.ini,IPS,%name)) {
vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Auto-Logged In (Admin Level: $vcmp.level(%id) $+ )
vcmp.msg %id You Auto Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
vcmp.timer.login %name off
!writeini -n vcmp.admin.ini LIN %name 1
!writeini -n vcmp.admin.ini IPS %name $vcmp.ip(%name)
}
else {
vcmp.announce %id PLEASE LOGIN TO THIS NICK-NAME
vcmp.msg %id You Must Login to this Nick-Name! Type: /c login <password>
vcmp.sethp %id 0
}
}
vcmp.add.spawns $vcmp.getid($1) 1
;!writeini -n vcmp.cheat.ini CHECK $1 0
vcmp.msg %id Spawned
}
elseif ($2 == goto) {
if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name>
elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 to Yourself
elseif ($vcmp.cost(%b) > $vcmp.cash(%b)) vcmp.msg %id Error - You need atleast $ $+ $bytes($vcmp.cost(%b),b) to use this command
else {
vcmp.cash- %b $vcmp.cost(%b)
vcmp.goto %b %a
vcmp.cmdsay $2 %id Goto - Taking: %name $+ , To: $vcmp.name(%a) $+ , Cost: $ $+ $bytes($vcmp.cost(%b),b)
}
}
elseif ($2 == ban) {
if ($vcmp.cmdcheck(!ban,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
else {
vcmp.cmdsay $2 %id Banning $vcmp.name($vcmp.getid($3)) - By Admin: %name $+ , Reason: $iif($4,$v1,None)
vcmp.ban $vcmp.getid($3)
}
}
elseif ($2 == kick) {
if ($vcmp.cmdcheck(!kick,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
else {
vcmp.cmdsay $2 %id Kicking $vcmp.name($vcmp.getid($3)) - By Admin: %name $+ , Reason: $iif($4,$v1,None)
vcmp.kick $vcmp.getid($3)
}
}
elseif ($2 == warn) {
if ($vcmp.cmdcheck(!warn,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
else {
vcmp.warn $vcmp.getid($3) %name $4-
}
}
elseif ($2 == goto) {
if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name>
elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 to Yourself
elseif ($vcmp.cost(%b) > $vcmp.cash(%b)) vcmp.msg %id Error - You need atleast $ $+ $bytes($vcmp.cost(%b),b) to use this command
else {
vcmp.cash- %b $vcmp.cost(%b)
vcmp.goto %b %a
vcmp.cmdsay $2 %id Goto - Taking: %name $+ , To: $vcmp.name(%a) $+ , Cost: $ $+ $bytes($vcmp.cost(%b),b)
}
}
elseif ($2 == subalias) {
if ($vcmp.cmdcheck(!subalias,%id) == fail) !halt
elseif ($vcmp.getid($3) == -1) {
if (!$vcmp.alias($3)) vcmp.msg %id Error - Could Not Find Sub-Alias Under " $+ $3 $+ " $+ , $2 <name/ip>
else vcmp.cmdsay $2 %id $3 $+ 's Sub-Alias - Names: $vcmp.alias($3)
}
elseif (!$vcmp.alias($gettok($vcmp.ip($vcmp.name($vcmp.getid($3))),1-2,46))) vcmp.msg %id Error - $vcmp.name($vcmp.getid($3)) does not have a Sub-Alias
else vcmp.cmdsay $2 %id $vcmp.name(%a) $+ 's Sub-Alias - Names: $vcmp.alias($gettok($vcmp.ip($vcmp.name(%a)),1-2,46))
}